We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 126241a commit 49665c9Copy full SHA for 49665c9
src/types/string.rs
@@ -13,7 +13,7 @@ impl FromLisp<'_> for String {
13
#[cfg(feature = "utf-8-validation")]
14
fn from_lisp(value: Value<'_>) -> Result<Self> {
15
let bytes = value.env.string_bytes(value)?;
16
- Ok(String::from_utf8(bytes).unwrap())
+ String::from_utf8(bytes).map_err(|e| e.into())
17
}
18
19
0 commit comments