mirror of https://github.com/helix-editor/helix
Address new clippy lints
parent
e474779c87
commit
8a602995fa
|
@ -1,3 +1,4 @@
|
||||||
|
use std::fmt::Write;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
use crate::job::Job;
|
use crate::job::Job;
|
||||||
|
@ -1103,7 +1104,7 @@ fn get_character_info(
|
||||||
codepoint
|
codepoint
|
||||||
};
|
};
|
||||||
|
|
||||||
unicode.push_str(&format!("{codepoint:0>4x}"));
|
write!(unicode, "{codepoint:0>4x}").unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
unicode.push(')');
|
unicode.push(')');
|
||||||
|
@ -1144,7 +1145,7 @@ fn get_character_info(
|
||||||
}
|
}
|
||||||
|
|
||||||
for byte in &bytes[current_byte..] {
|
for byte in &bytes[current_byte..] {
|
||||||
hex.push_str(&format!(" {byte:0>2x}"));
|
write!(hex, " {byte:0>2x}").unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
current_byte = bytes.len();
|
current_byte = bytes.len();
|
||||||
|
|
|
@ -419,7 +419,7 @@ impl<'a> TextRenderer<'a> {
|
||||||
// TODO special rendering for other whitespaces?
|
// TODO special rendering for other whitespaces?
|
||||||
Grapheme::Other { ref g } if g == " " => &self.space,
|
Grapheme::Other { ref g } if g == " " => &self.space,
|
||||||
Grapheme::Other { ref g } if g == "\u{00A0}" => &self.nbsp,
|
Grapheme::Other { ref g } if g == "\u{00A0}" => &self.nbsp,
|
||||||
Grapheme::Other { ref g } => &*g,
|
Grapheme::Other { ref g } => g,
|
||||||
Grapheme::Newline => &self.newline,
|
Grapheme::Newline => &self.newline,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue