From 66d15bb2dafefe74c34e636ceb242f056f7b43dc Mon Sep 17 00:00:00 2001 From: gfreezy Date: Fri, 21 Dec 2018 22:45:38 +0800 Subject: add #[cfg(test)] --- crates/ra_db/src/input.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index f6d11844a..ee4de6fa9 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs @@ -132,7 +132,8 @@ impl CrateGraph { } -mod test { +#[cfg(test)] +mod tests { use super::{CrateGraph, FxHashMap, FileId, SmolStr}; #[test] #[should_panic] -- cgit v1.2.3