about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-03-22 12:43:19 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-03-22 12:43:19 +0100
commit263cbd1bbe2d89880c04b69a003f98ca12ba4970 (patch)
treedf9f187c92391eff28bfddf8b70bfe0e76b854cd /src/librustc_data_structures
parent5574b1df577f737373b42cbf364b6cab2dfa5960 (diff)
downloadrust-263cbd1bbe2d89880c04b69a003f98ca12ba4970.tar.gz
rust-263cbd1bbe2d89880c04b69a003f98ca12ba4970.zip
remove redundant closures (clippy::redundant_closure)
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/sharded.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/sharded.rs b/src/librustc_data_structures/sharded.rs
index d08d46a7414..485719c5175 100644
--- a/src/librustc_data_structures/sharded.rs
+++ b/src/librustc_data_structures/sharded.rs
@@ -30,7 +30,7 @@ pub struct Sharded<T> {
 impl<T: Default> Default for Sharded<T> {
     #[inline]
     fn default() -> Self {
-        Self::new(|| T::default())
+        Self::new(T::default)
     }
 }