apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -16,12 +16,12 @@ impl fmt::Display for Escape<'_> {
|
||||
let mut last = 0;
|
||||
for (i, ch) in s.char_indices() {
|
||||
let s = match ch {
|
||||
'>' => ">",
|
||||
'<' => "<",
|
||||
'&' => "&",
|
||||
'\'' => "'",
|
||||
'"' => """,
|
||||
_ => continue,
|
||||
| '>' => ">",
|
||||
| '<' => "<",
|
||||
| '&' => "&",
|
||||
| '\'' => "'",
|
||||
| '"' => """,
|
||||
| _ => continue,
|
||||
};
|
||||
fmt.write_str(&pile_o_bits[last..i])?;
|
||||
fmt.write_str(s)?;
|
||||
|
||||
Reference in New Issue
Block a user