summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-12-03 15:14:38 -0500
committerGitHub <noreply@github.com>2020-12-03 15:14:38 -0500
commit15d06cbf7584570ec3b5beaba99cb8898f9ec3dc (patch)
tree1e8a4f6d3469dd7718d837dfbda8d2d7c5b4ba80 /src/paint.rs
parent8e65ea071a1fdfc34d5031ce1a5130e109d7bb5e (diff)
Disable some clippy warnings (#422)
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs3
1 files changed, 3 insertions, 0 deletions
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<Vec<(SyntectStyle, &str)>>,
diff_style_sections: Vec<Vec<(Style, &str)>>,
@@ -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)> {