From d12abfda719a7356cd278fe0d055b29b01a93d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Lachowski?= Date: Wed, 13 Nov 2024 23:55:26 +0100 Subject: [PATCH] rust-fmt for token_bucket.rs --- rate-limiter/src/token_bucket.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rate-limiter/src/token_bucket.rs b/rate-limiter/src/token_bucket.rs index 44ea55c9f5..fd65049ed4 100644 --- a/rate-limiter/src/token_bucket.rs +++ b/rate-limiter/src/token_bucket.rs @@ -338,8 +338,11 @@ impl SharedTokenBucket { need_to_notify_parent: false, } } - - pub fn share(&self) -> Self where TP: Clone, SU: Clone { + pub fn share(&self) -> Self + where + TP: Clone, + SU: Clone, + { Self { shared_bandwidth: self.shared_bandwidth.share(), rate_limiter: self.rate_limiter.clone(),