mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-05-18 23:39:47 +00:00
Clippy.
This commit is contained in:
parent
4c0e77d70a
commit
dd2a357cb2
@ -19,7 +19,7 @@ pub type ConstBytes = inner::Buffer<*const u8>;
|
||||
/// # Arguments
|
||||
///
|
||||
/// - `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
|
||||
///
|
||||
|
||||
@ -32,7 +32,7 @@ impl TryFrom<crate::ffi::Status> for () {
|
||||
None
|
||||
};
|
||||
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"));
|
||||
Err(error_message.into())
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user