about summary refs log tree commit diff
path: root/src/liballoc/collections
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-01-19 20:50:00 +0100
committerJonas Schievink <jonasschievink@gmail.com>2020-01-19 20:50:00 +0100
commite5987a062f487321bdfcbbdac4b0b30548258631 (patch)
treeb2c63d46e62d4865c021f91ed1daaeb5b9034927 /src/liballoc/collections
parent52d6c90488abdd12a24c66f5e3490ae3136bb295 (diff)
downloadrust-e5987a062f487321bdfcbbdac4b0b30548258631.tar.gz
rust-e5987a062f487321bdfcbbdac4b0b30548258631.zip
Format
Diffstat (limited to 'src/liballoc/collections')
-rw-r--r--src/liballoc/collections/linked_list.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs
index 463ec67d668..399dbe5e4bf 100644
--- a/src/liballoc/collections/linked_list.rs
+++ b/src/liballoc/collections/linked_list.rs
@@ -1566,10 +1566,13 @@ where
 {
     fn drop(&mut self) {
         struct DropGuard<'r, 'a, T, F>(&'r mut DrainFilter<'a, T, F>)
-            where F: FnMut(&mut T) -> bool;
+        where
+            F: FnMut(&mut T) -> bool;
 
         impl<'r, 'a, T, F> Drop for DropGuard<'r, 'a, T, F>
-        where F: FnMut(&mut T) -> bool {
+        where
+            F: FnMut(&mut T) -> bool,
+        {
             fn drop(&mut self) {
                 self.0.for_each(drop);
             }