diff --git a/src/sourceview.rs b/src/sourceview.rs index a2db4603..89138a5b 100644 --- a/src/sourceview.rs +++ b/src/sourceview.rs @@ -323,7 +323,7 @@ impl<'a> SourceView<'a> { } #[test] -#[allow(clippy::cyclomatic_complexity)] +#[allow(clippy::cognitive_complexity)] fn test_minified_source_view() { let view = SourceView::new("a\nb\nc"); assert_eq!(view.get_line(0), Some("a"));