mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-18 20:53:40 +08:00
Fix/suppress some clippies
needless_lifetimes is annoying; supress that. Fix some spacing that clippy was complaining about.
This commit is contained in:
parent
eee44b7469
commit
5d10bc6a02
|
@ -97,3 +97,4 @@ rust.unknown_lints = "allow"
|
||||||
rust.unstable_name_collisions = "allow"
|
rust.unstable_name_collisions = "allow"
|
||||||
clippy.manual_range_contains = "allow"
|
clippy.manual_range_contains = "allow"
|
||||||
clippy.needless_return = "allow"
|
clippy.needless_return = "allow"
|
||||||
|
clippy.needless_lifetimes = "allow"
|
||||||
|
|
|
@ -252,7 +252,7 @@ impl RgbColor {
|
||||||
/// - `#F3A035`
|
/// - `#F3A035`
|
||||||
/// - `FA3`
|
/// - `FA3`
|
||||||
/// - `F3A035`
|
/// - `F3A035`
|
||||||
|
///
|
||||||
/// Parses input in the form of `#RGB` or `#RRGGBB` with an optional single leading `#` into
|
/// Parses input in the form of `#RGB` or `#RRGGBB` with an optional single leading `#` into
|
||||||
/// an instance of [`RgbColor`].
|
/// an instance of [`RgbColor`].
|
||||||
///
|
///
|
||||||
|
|
|
@ -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
|
/// Handle output from a builtin, by printing the contents of builtin_io_streams to the redirections
|
||||||
/// given in io_chain.
|
/// given in io_chain.
|
||||||
|
|
||||||
fn handle_builtin_output(
|
fn handle_builtin_output(
|
||||||
parser: &Parser,
|
parser: &Parser,
|
||||||
j: &Job,
|
j: &Job,
|
||||||
|
|
|
@ -273,9 +273,9 @@ fn maybe_unescape_yaml_fish_2_0(s: &[u8]) -> Cow<[u8]> {
|
||||||
unescape_yaml_fish_2_0(s).into()
|
unescape_yaml_fish_2_0(s).into()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unescapes the fish-specific yaml variant. Use [`maybe_unescape_yaml_fish_2_0()`] if you're not
|
// Unescapes the fish-specific yaml variant. Use [`maybe_unescape_yaml_fish_2_0()`] if you're not
|
||||||
/// positive the input contains an escape.
|
// positive the input contains an escape.
|
||||||
|
//
|
||||||
// This function is called on every input event and shows up heavily in all flamegraphs.
|
// 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,
|
// 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!
|
// and this implementation (chunk_loop_box) won out. Make changes with care!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user