diff options
author | Alexandru Macovei <alexnmaco@gmail.com> | 2020-10-07 09:14:43 +0300 |
---|---|---|
committer | Alexandru Macovei <alexnmaco@gmail.com> | 2020-10-07 09:26:17 +0300 |
commit | 6776d3a4ca966656578155bfdfa9fa7b54a0a45c (patch) | |
tree | 2559aad4d2bb7c3a37b2be5f9c8eb89f8fff3353 | |
parent | 9a1983982a3e0ac012231e34d5688cfd76b2aaa5 (diff) |
apply clippy lints
-rw-r--r-- | src/commute.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 | ||||
-rw-r--r-- | src/main.rs | 4 | ||||
-rw-r--r-- | src/owned.rs | 3 | ||||
-rw-r--r-- | src/stack.rs | 6 |
5 files changed, 2 insertions, 16 deletions
diff --git a/src/commute.rs b/src/commute.rs index b7f5ce2..3b8ca63 100644 --- a/src/commute.rs +++ b/src/commute.rs @@ -1,5 +1,3 @@ -extern crate failure; - use crate::owned; /// Tests if all elements of the iterator are equal to each other. @@ -1,6 +1,3 @@ -extern crate failure; -extern crate git2; -extern crate memchr; #[macro_use] extern crate slog; diff --git a/src/main.rs b/src/main.rs index 3749ea5..2ea851d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,8 @@ #[macro_use] extern crate clap; -extern crate git_absorb; + #[macro_use] extern crate slog; -extern crate slog_async; -extern crate slog_term; use slog::Drain; diff --git a/src/owned.rs b/src/owned.rs index 02d4ab9..d9994d0 100644 --- a/src/owned.rs +++ b/src/owned.rs @@ -1,6 +1,3 @@ -extern crate failure; -extern crate git2; - use std::collections::hash_map::HashMap; use std::rc::Rc; diff --git a/src/stack.rs b/src/stack.rs index d01bc42..f99d9e3 100644 --- a/src/stack.rs +++ b/src/stack.rs @@ -1,7 +1,3 @@ -extern crate failure; -extern crate git2; -extern crate slog; - use std::collections::HashMap; pub const MAX_STACK_CONFIG_NAME: &str = "absorb.maxStack"; @@ -122,7 +118,7 @@ where #[cfg(test)] mod tests { - extern crate tempdir; + use tempdir; use super::*; |