This commit is contained in:
Alejandro Cabeza Romero 2026-04-24 12:51:39 +02:00
parent 4c0e77d70a
commit dd2a357cb2
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
2 changed files with 2 additions and 2 deletions

View File

@ -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
///

View File

@ -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())
},