From 2c90a37969644866d0503c20a94196de3f6bea99 Mon Sep 17 00:00:00 2001 From: Lena Wildervanck Date: Wed, 11 Mar 2020 17:55:14 +0100 Subject: [PATCH] Reformat match statement to make the check pass --- src/liballoc/collections/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 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) }