diff options
author | Paolo Borelli <pborelli@gnome.org> | 2020-12-26 14:39:33 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2020-12-27 11:21:22 +0100 |
commit | 704174379c42c9a7f0a85633d885e5d4d3cb647f (patch) | |
tree | e9ff1b8018a6e1098343529ffa0c0975cbc94d4e | |
parent | 6ddc46aa43962a71d9aa11201886f3b204766514 (diff) | |
download | librsvg-704174379c42c9a7f0a85633d885e5d4d3cb647f.tar.gz |
error: fix a clippy suggestion
-rw-r--r-- | src/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index 22632fce..f3d1b246 100644 --- a/src/error.rs +++ b/src/error.rs @@ -253,7 +253,7 @@ impl<'i, O> AttributeResultExt<O> for Result<O, ParseError<'i>> { ParseErrorKind::Basic(BasicParseErrorKind::UnexpectedToken(tok)) => { let mut s = String::from("unexpected token '"); tok.to_css(&mut s).unwrap(); // FIXME: what do we do with a fmt::Error? - s.push_str("'"); + s.push('\''); ElementError { attr, |