From 15d06cbf7584570ec3b5beaba99cb8898f9ec3dc Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 3 Dec 2020 15:14:38 -0500 Subject: Disable some clippy warnings (#422) --- src/paint.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/paint.rs') diff --git a/src/paint.rs b/src/paint.rs index 9171f231..7bb19f06 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -240,6 +240,7 @@ impl<'a> Painter<'a> { /// Superimpose background styles and foreground syntax /// highlighting styles, and write colored lines to output buffer. + #[allow(clippy::too_many_arguments)] pub fn paint_lines( syntax_style_sections: Vec>, diff_style_sections: Vec>, @@ -487,6 +488,7 @@ impl<'a> Painter<'a> { } /// Set background styles to represent diff for minus and plus lines in buffer. + #[allow(clippy::type_complexity)] fn get_diff_style_sections<'b>( minus_lines: &'b [(String, State)], plus_lines: &'b [(String, State)], @@ -635,6 +637,7 @@ mod superimpose_style_sections { exploded } + #[allow(clippy::type_complexity)] fn superimpose( style_section_pairs: Vec<(&(SyntectStyle, char), (Style, char))>, ) -> Vec<((SyntectStyle, Style), char)> { -- cgit v1.2.3