about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLena Wildervanck <Lena.Wildervanck@gmail.com>2020-03-11 17:55:14 +0100
committerLena Wildervanck <Lena.Wildervanck@gmail.com>2020-03-11 17:55:14 +0100
commit2c90a37969644866d0503c20a94196de3f6bea99 (patch)
tree31393dc2edce098bf8c8d3f9aea23c8a085cab37
parent599cd683eac7fdb076fe86f2928062e087214a22 (diff)
downloadrust-2c90a37969644866d0503c20a94196de3f6bea99.tar.gz
rust-2c90a37969644866d0503c20a94196de3f6bea99.zip
Reformat match statement to make the check pass
-rw-r--r--src/liballoc/collections/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc/collections/mod.rs b/src/liballoc/collections/mod.rs
index b2e9b89cbda..6b21e54f66a 100644
--- a/src/liballoc/collections/mod.rs
+++ b/src/liballoc/collections/mod.rs
@@ -89,9 +89,7 @@ impl Display for TryReserveError {
             TryReserveError::CapacityOverflow => {
                 " because the computed capacity exceeded the collection's maximum"
             }
-            TryReserveError::AllocError { .. } => {
-                " because the memory allocator returned a error"
-            }
+            TryReserveError::AllocError { .. } => " because the memory allocator returned a error",
         };
         fmt.write_str(reason)
     }