Skip to content

Commit

Permalink
fix for newest main
Browse files Browse the repository at this point in the history
  • Loading branch information
psentee committed Sep 27, 2024
1 parent fc3937c commit c31a0d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl IntoLua for OsString {
fn into_lua(self, lua: &Lua) -> Result<Value> {
BString::from(
Vec::from_os_string(self).map_err(|val| Error::ToLuaConversionError {
from: "OsString",
from: "OsString".into(),
to: "string",
message: Some(format!("Invalid encoding: {:?}", val)),
})?,
Expand All @@ -588,7 +588,7 @@ impl FromLua for OsString {
.into_os_string()
.map_err(|err| Error::FromLuaConversionError {
from: ty,
to: "OsString",
to: "OsString".into(),
message: Some(format!("{}", err)),
})
}
Expand Down

0 comments on commit c31a0d1

Please sign in to comment.