Fix unused macro warning when compiling tests without trace feature.

This commit is contained in:
John Gallagher 2017-04-05 12:46:58 -04:00
parent ccf1f61127
commit 4b2a6d2207
2 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,7 @@ extern crate libsqlite3_sys as ffi;
extern crate lru_cache;
#[macro_use]
extern crate bitflags;
#[cfg(test)]
#[cfg(all(test, feature = "trace"))]
#[macro_use]
extern crate lazy_static;

View File

@ -1,6 +1,7 @@
//! This file contains unit tests for rusqlite::trace::config_log. This function affects
//! SQLite process-wide and so is not safe to run as a normal #[test] in the library.
#[cfg(feature = "trace")]
#[macro_use]
extern crate lazy_static;
extern crate rusqlite;