From 7778dfd30bde5802c2c5a17610f78435901c57ee Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 30 Sep 2020 12:46:45 -0700 Subject: [PATCH] Format remove_entry cfg with rustfmt --- src/map.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/map.rs b/src/map.rs index bb227a23d..b0cc70652 100644 --- a/src/map.rs +++ b/src/map.rs @@ -134,14 +134,22 @@ impl Map { { #[cfg(any(feature = "preserve_order", not(no_btreemap_remove_entry)))] return self.map.remove_entry(key); - #[cfg(all(not(feature = "preserve_order"), no_btreemap_remove_entry, not(no_btreemap_get_key_value)))] + #[cfg(all( + not(feature = "preserve_order"), + no_btreemap_remove_entry, + not(no_btreemap_get_key_value), + ))] { let (key, _value) = self.map.get_key_value(key)?; let key = key.clone(); let value = self.map.remove::(&key)?; Some((key, value)) } - #[cfg(all(not(feature = "preserve_order"), no_btreemap_remove_entry, no_btreemap_get_key_value))] + #[cfg(all( + not(feature = "preserve_order"), + no_btreemap_remove_entry, + no_btreemap_get_key_value, + ))] { use std::ops::{Bound, RangeBounds};