about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGlenn Hope <glenn.alexander.hope@gmail.com>2020-05-03 11:18:10 -0700
committerGlenn Hope <glenn.alexander.hope@gmail.com>2020-05-09 11:09:38 -0700
commitbdc75dbb7bbdc379b1f8cc346151fac4e63d7deb (patch)
tree70a0f197998d5c837c9bf0650c1e7207619251b0
parent0c14ea8ed79ebf0b7368659282136e876f247cc9 (diff)
downloadrust-bdc75dbb7bbdc379b1f8cc346151fac4e63d7deb.tar.gz
rust-bdc75dbb7bbdc379b1f8cc346151fac4e63d7deb.zip
Run `cargo dev fmt`
-rw-r--r--clippy_lints/src/wildcard_imports.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/clippy_lints/src/wildcard_imports.rs b/clippy_lints/src/wildcard_imports.rs
index 70ad9a60a02..e7400642b07 100644
--- a/clippy_lints/src/wildcard_imports.rs
+++ b/clippy_lints/src/wildcard_imports.rs
@@ -158,12 +158,14 @@ impl LateLintPass<'_, '_> for WildcardImports {
 // Allow "...prelude::*" imports.
 // Many crates have a prelude, and it is imported as a glob by design.
 fn is_prelude_import(segments: &[PathSegment<'_>]) -> bool {
-    segments.iter().last().map_or(false, |ps| ps.ident.as_str() == "prelude")
+    segments
+        .iter()
+        .last()
+        .map_or(false, |ps| ps.ident.as_str() == "prelude")
 }
 
 // Allow "super::*" imports.
 // This is intended primarily to ease the process of writing unit tests.
 fn is_super_only_import_in_test(segments: &[PathSegment<'_>]) -> bool {
-    segments.iter().len() == 1 &&
-        segments.first().map_or(false, |ps| ps.ident.as_str() == "super")
+    segments.iter().len() == 1 && segments.first().map_or(false, |ps| ps.ident.as_str() == "super")
 }