Apply clippy suggestion

This commit is contained in:
Oliver Hamlet
2022-09-15 22:08:08 +01:00
parent f6c64deb55
commit 522fe26185
+1 -1
View File
@@ -19,7 +19,7 @@ pub enum Error {
}
fn escape<I: fmt::Display>(input: I) -> String {
input.to_string().replace("\"", "\\\"")
input.to_string().replace('"', "\\\"")
}
impl<I: fmt::Debug + fmt::Display> From<Err<ParsingError<I>>> for Error {