From 1bf92e2ffb45bd66d06339bf2c3c6a5a5b2187fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Akg=C3=BCn?= Date: Thu, 26 Sep 2024 21:03:28 +0100 Subject: [PATCH] Clean up warnings in cargo test --- uniplate/examples/stmt.rs | 2 +- uniplate/src/test_common/paper.rs | 4 ++-- uniplate/tests/derive-pass/biplate-stmt.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/uniplate/examples/stmt.rs b/uniplate/examples/stmt.rs index b6cafa9..3cc7511 100644 --- a/uniplate/examples/stmt.rs +++ b/uniplate/examples/stmt.rs @@ -1,7 +1,7 @@ #![allow(dead_code)] use uniplate::derive::Uniplate; -use uniplate::{Biplate, Uniplate}; +use uniplate::Biplate; #[derive(Eq, PartialEq, Clone, Debug, Uniplate)] #[uniplate()] diff --git a/uniplate/src/test_common/paper.rs b/uniplate/src/test_common/paper.rs index e7e835f..0de37ae 100644 --- a/uniplate/src/test_common/paper.rs +++ b/uniplate/src/test_common/paper.rs @@ -1,6 +1,6 @@ use crate::derive::Uniplate; -use crate::{Biplate, Uniplate}; -use prop::sample::SizeRange; +#[cfg(test)] +use crate::Uniplate; use proptest::prelude::*; // Examples found in the Uniplate paper. diff --git a/uniplate/tests/derive-pass/biplate-stmt.rs b/uniplate/tests/derive-pass/biplate-stmt.rs index 9beb8aa..f459f03 100644 --- a/uniplate/tests/derive-pass/biplate-stmt.rs +++ b/uniplate/tests/derive-pass/biplate-stmt.rs @@ -1,6 +1,6 @@ #![allow(dead_code)] -use uniplate::{Biplate, Uniplate,derive::Uniplate}; +use uniplate::{derive::Uniplate, Biplate}; #[derive(Eq, PartialEq, Clone, Debug, Uniplate)] #[biplate(to=Expr)]