From c7adbaede77d1638dc12661cf9bb6fda9d1e0fcc Mon Sep 17 00:00:00 2001 From: Michael Macias <zaeleus@gmail.com> Date: Wed, 18 Jan 2017 04:02:09 -0600 Subject: [PATCH] Fix compiler warnings when testing --- src/tests/mod.rs | 6 ++++-- src/tests/model.rs | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tests/mod.rs b/src/tests/mod.rs index 7cdbb6ef..b5e3076b 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -1,4 +1,6 @@ +//! Library tests and fixtures + pub mod model; mod schema; -pub mod query_tests; -pub mod introspection_tests; +#[cfg(test)] mod query_tests; +#[cfg(test)] mod introspection_tests; diff --git a/src/tests/model.rs b/src/tests/model.rs index bfde3b40..f7098771 100644 --- a/src/tests/model.rs +++ b/src/tests/model.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use std::collections::HashMap; #[derive(Copy, Clone, Eq, PartialEq, Debug)]