Skip to content

Commit

Permalink
rust-fmt for token_bucket.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
fixxxedpoint committed Nov 13, 2024
1 parent 8fd9ba9 commit d12abfd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rate-limiter/src/token_bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,11 @@ impl<TP, SU> SharedTokenBucket<TP, SU> {
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(),
Expand Down

0 comments on commit d12abfd

Please sign in to comment.