Fix/suppress some clippies

needless_lifetimes is annoying; supress that. Fix some spacing that clippy was
complaining about.
This commit is contained in:
Peter Ammon 2024-11-30 12:21:30 -08:00
parent eee44b7469
commit 5d10bc6a02
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View File

@ -97,3 +97,4 @@ rust.unknown_lints = "allow"
rust.unstable_name_collisions = "allow"
clippy.manual_range_contains = "allow"
clippy.needless_return = "allow"
clippy.needless_lifetimes = "allow"

View File

@ -252,7 +252,7 @@ impl RgbColor {
/// - `#F3A035`
/// - `FA3`
/// - `F3A035`
///
/// Parses input in the form of `#RGB` or `#RRGGBB` with an optional single leading `#` into
/// an instance of [`RgbColor`].
///

View File

@ -795,7 +795,6 @@ fn create_output_stream_for_builtin(
/// Handle output from a builtin, by printing the contents of builtin_io_streams to the redirections
/// given in io_chain.
fn handle_builtin_output(
parser: &Parser,
j: &Job,

View File

@ -273,9 +273,9 @@ fn maybe_unescape_yaml_fish_2_0(s: &[u8]) -> Cow<[u8]> {
unescape_yaml_fish_2_0(s).into()
}
/// Unescapes the fish-specific yaml variant. Use [`maybe_unescape_yaml_fish_2_0()`] if you're not
/// positive the input contains an escape.
// Unescapes the fish-specific yaml variant. Use [`maybe_unescape_yaml_fish_2_0()`] if you're not
// positive the input contains an escape.
//
// This function is called on every input event and shows up heavily in all flamegraphs.
// Various approaches were benchmarked against real-world fish-history files on lines with escapes,
// and this implementation (chunk_loop_box) won out. Make changes with care!