We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3937c commit c31a0d1Copy full SHA for c31a0d1
src/conversion.rs
@@ -570,7 +570,7 @@ impl IntoLua for OsString {
570
fn into_lua(self, lua: &Lua) -> Result<Value> {
571
BString::from(
572
Vec::from_os_string(self).map_err(|val| Error::ToLuaConversionError {
573
- from: "OsString",
+ from: "OsString".into(),
574
to: "string",
575
message: Some(format!("Invalid encoding: {:?}", val)),
576
})?,
@@ -588,7 +588,7 @@ impl FromLua for OsString {
588
.into_os_string()
589
.map_err(|err| Error::FromLuaConversionError {
590
from: ty,
591
- to: "OsString",
+ to: "OsString".into(),
592
message: Some(format!("{}", err)),
593
})
594
}
0 commit comments