diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-04 11:49:33 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:21:54 +0100 |
commit | a0235c900b052f31b221d7c0994598c014b1b791 (patch) | |
tree | cfecfa88cd12bfdec2a4125caa37c55699882221 /src/util | |
parent | b653c3377c37458e23e837f54f5e597bf07641ba (diff) |
Deny macro_use from external crate
Diesel is an exception here, because the generated src/schema.rs file
does not automatically contain the necessary imports.
All imports were added where necessary.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/docker.rs | 3 | ||||
-rw-r--r-- | src/util/filters.rs | 1 | ||||
-rw-r--r-- | src/util/git.rs | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/util/docker.rs b/src/util/docker.rs index 3c0514c..08f069b 100644 --- a/src/util/docker.rs +++ b/src/util/docker.rs @@ -78,7 +78,8 @@ pub fn is_valid_tag_name(s: &str) -> Result<()> { #[cfg(test)] mod docker_test { - extern crate env_logger; + use log::debug; + fn setup_logging() { let _ = env_logger::try_init(); } diff --git a/src/util/filters.rs b/src/util/filters.rs index 32bb4f7..59c4d67 100644 --- a/src/util/filters.rs +++ b/src/util/filters.rs @@ -1,6 +1,7 @@ use anyhow::Error; use anyhow::Result; use filters::failable::filter::FailableFilter; +use log::trace; use resiter::Map; use crate::package::Package; diff --git a/src/util/git.rs b/src/util/git.rs index 4defb26..7a13a05 100644 --- a/src/util/git.rs +++ b/src/util/git.rs @@ -5,6 +5,7 @@ use anyhow::Error; use anyhow::Result; use anyhow::anyhow; use git2::Repository; +use log::trace; pub fn repo_is_clean(p: &Path) -> Result<bool> { Repository::open(p) |