From b0aeab30a40d41be203ce1033933cceeb73e9d6c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Oct 2023 16:13:35 +0100 Subject: [PATCH] Fix merge damage --- metered-channel/src/bounded.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/metered-channel/src/bounded.rs b/metered-channel/src/bounded.rs index 136d280..03478b3 100644 --- a/metered-channel/src/bounded.rs +++ b/metered-channel/src/bounded.rs @@ -363,12 +363,6 @@ impl MeteredReceiver { pub fn len(&self) -> usize { self.meter.calculate_channel_len() } - - #[cfg(feature = "futures_channel")] - /// Returns the current number of messages in the channel based on meter approximation - pub fn len(&self) -> usize { - self.meter.calculate_channel_len() - } } impl futures::stream::FusedStream for MeteredReceiver {