about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-03-06 19:28:44 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-03-06 19:42:18 +0100
commit83980aca2086e5c4dca5aae9a92a065a9ff4ac56 (patch)
tree63eb7630d6ad55dd9c2a367b33a387ee0037c4f0 /src/liballoc
parent865b44a3e330f3ef8be0f6edf69896c9ed957ac0 (diff)
downloadrust-83980aca2086e5c4dca5aae9a92a065a9ff4ac56.tar.gz
rust-83980aca2086e5c4dca5aae9a92a065a9ff4ac56.zip
Don't redundantly repeat field names (clippy::redundant_field_names)
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/collections/linked_list.rs2
-rw-r--r--src/liballoc/vec.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs
index a9b4e3e4706..8efacf108fc 100644
--- a/src/liballoc/collections/linked_list.rs
+++ b/src/liballoc/collections/linked_list.rs
@@ -959,7 +959,7 @@ impl<T> LinkedList<T> {
         let it = self.head;
         let old_len = self.len;
 
-        DrainFilter { list: self, it: it, pred: filter, idx: 0, old_len: old_len }
+        DrainFilter { list: self, it, pred: filter, idx: 0, old_len }
     }
 }
 
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 3fd7be06fd4..7523d9c5ba3 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -1659,7 +1659,7 @@ struct SetLenOnDrop<'a> {
 impl<'a> SetLenOnDrop<'a> {
     #[inline]
     fn new(len: &'a mut usize) -> Self {
-        SetLenOnDrop { local_len: *len, len: len }
+        SetLenOnDrop { local_len: *len, len }
     }
 
     #[inline]