diff --git a/Cargo.toml b/Cargo.toml index a2d559f3f..7a40b7739 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/color.rs b/src/color.rs index 7c47b84fc..3012cc82b 100644 --- a/src/color.rs +++ b/src/color.rs @@ -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`]. /// diff --git a/src/exec.rs b/src/exec.rs index 299fcb73e..0d8362498 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -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, diff --git a/src/history/file.rs b/src/history/file.rs index 1e44f0c5f..5125981b6 100644 --- a/src/history/file.rs +++ b/src/history/file.rs @@ -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!