Skip to content

Commit

Permalink
Merge pull request amethyst#25 from milespossing/master
Browse files Browse the repository at this point in the history
Fixing reference to serde::__private::from_utf8_lossy
  • Loading branch information
kabergstrom authored Jan 12, 2021
2 parents 7ff18cd + a4fab22 commit 1ff2550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/difference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl<'de> de::Visitor<'de> for DiffCommandFieldVisitor {
b"RemoveKey" => Ok(DiffCommandField::RemoveKey),
b"Exit" => Ok(DiffCommandField::Exit),
_ => {
let value = &serde::export::from_utf8_lossy(value);
let value = &String::from_utf8_lossy(value);
Err(de::Error::unknown_variant(value, VARIANTS))
}
}
Expand Down

0 comments on commit 1ff2550

Please sign in to comment.