Merge pull request #253 from jgallagher/fix-unused-macro-warning

Fix unused macro warning when compiling tests without `trace` feature.
This commit is contained in:
John Gallagher 2017-04-05 13:30:46 -04:00 committed by GitHub
commit 76363cca7e
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;