From 6a72f65b3b8762ce997578c5eeb4ffcb07b99864 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 21 Apr 2020 10:17:46 +0200 Subject: [PATCH] gstreamer: ignore cognitive_complexity warnings Those are just long tests. --- gstreamer/src/buffer.rs | 1 + gstreamer/src/buffer_cursor.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gstreamer/src/buffer.rs b/gstreamer/src/buffer.rs index d78c3cc96..136e441e8 100644 --- a/gstreamer/src/buffer.rs +++ b/gstreamer/src/buffer.rs @@ -1118,6 +1118,7 @@ mod tests { } #[test] + #[allow(clippy::cognitive_complexity)] fn test_memories() { ::init().unwrap(); diff --git a/gstreamer/src/buffer_cursor.rs b/gstreamer/src/buffer_cursor.rs index 691eacda1..fa32184d7 100644 --- a/gstreamer/src/buffer_cursor.rs +++ b/gstreamer/src/buffer_cursor.rs @@ -437,6 +437,7 @@ mod tests { use super::*; #[test] + #[allow(clippy::cognitive_complexity)] fn test_buffer_cursor() { use std::io::{self, Read, Seek, Write}; @@ -528,6 +529,7 @@ mod tests { } #[test] + #[allow(clippy::cognitive_complexity)] fn test_buffer_cursor_ref() { use std::io::{self, Read, Seek, Write};