mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-05-21 00:39:26 +00:00
Clippy.
This commit is contained in:
parent
4c0e77d70a
commit
dd2a357cb2
@ -19,7 +19,7 @@ pub type ConstBytes = inner::Buffer<*const u8>;
|
|||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// - `bytes`: A pointer to a [`Bytes`] struct whose data buffer was allocated by the C API and
|
/// - `bytes`: A pointer to a [`Bytes`] struct whose data buffer was allocated by the C API and
|
||||||
/// needs to be freed.
|
/// needs to be freed.
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
|
|||||||
@ -32,7 +32,7 @@ impl TryFrom<crate::ffi::Status> for () {
|
|||||||
None
|
None
|
||||||
};
|
};
|
||||||
let error_message = message
|
let error_message = message
|
||||||
.map(|inner| DynError::from(inner.to_string_lossy().to_owned()))
|
.map(|inner| DynError::from(inner.to_string_lossy().into_owned()))
|
||||||
.unwrap_or_else(|| DynError::from("Unknown error"));
|
.unwrap_or_else(|| DynError::from("Unknown error"));
|
||||||
Err(error_message.into())
|
Err(error_message.into())
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user