From abe02d3816a5da63de37686c86eb4d2058696f3c Mon Sep 17 00:00:00 2001 From: xrelkd <46590321+xrelkd@users.noreply.github.com> Date: Wed, 26 Jun 2024 22:47:40 +0800 Subject: [PATCH] fix(crates/clipboard): allow `dead_code` in tests --- crates/clipboard/tests/common/mod.rs | 1 + crates/clipboard/tests/default.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/clipboard/tests/common/mod.rs b/crates/clipboard/tests/common/mod.rs index 7cedf608..59e3df2b 100644 --- a/crates/clipboard/tests/common/mod.rs +++ b/crates/clipboard/tests/common/mod.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] use std::time::Duration; use clipcat_base::ClipboardContent; diff --git a/crates/clipboard/tests/default.rs b/crates/clipboard/tests/default.rs index de26bf00..7ef49f20 100644 --- a/crates/clipboard/tests/default.rs +++ b/crates/clipboard/tests/default.rs @@ -1,3 +1,5 @@ +mod common; + use std::sync::Arc; #[cfg(all( @@ -12,8 +14,6 @@ use std::sync::Arc; use clipcat_clipboard::X11ListenerError; use clipcat_clipboard::{Clipboard, ClipboardKind, Error}; -mod common; - use self::common::ClipboardTester; #[derive(Debug)]