Skip to content

Commit c31a0d1

Browse files
committed
fix for newest main
1 parent fc3937c commit c31a0d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/conversion.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl IntoLua for OsString {
570570
fn into_lua(self, lua: &Lua) -> Result<Value> {
571571
BString::from(
572572
Vec::from_os_string(self).map_err(|val| Error::ToLuaConversionError {
573-
from: "OsString",
573+
from: "OsString".into(),
574574
to: "string",
575575
message: Some(format!("Invalid encoding: {:?}", val)),
576576
})?,
@@ -588,7 +588,7 @@ impl FromLua for OsString {
588588
.into_os_string()
589589
.map_err(|err| Error::FromLuaConversionError {
590590
from: ty,
591-
to: "OsString",
591+
to: "OsString".into(),
592592
message: Some(format!("{}", err)),
593593
})
594594
}

0 commit comments

Comments
 (0)