mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: treewide: fmt for edition 2024
`cargo +nightly fmt` Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Bo Chen
parent
061351d82d
commit
363273111a
@@ -306,7 +306,7 @@ pub(crate) mod tests {
|
||||
|
||||
use super::RateLimiterGroupHandle;
|
||||
use crate::group::RateLimiterGroup;
|
||||
use crate::{TokenBucket, TokenType, REFILL_TIMER_INTERVAL_MS};
|
||||
use crate::{REFILL_TIMER_INTERVAL_MS, TokenBucket, TokenType};
|
||||
|
||||
impl RateLimiterGroupHandle {
|
||||
fn bandwidth(&self) -> Option<TokenBucket> {
|
||||
|
||||
@@ -48,8 +48,8 @@ extern crate log;
|
||||
|
||||
use std::io;
|
||||
use std::os::unix::io::{AsRawFd, RawFd};
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::Mutex;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
use thiserror::Error;
|
||||
@@ -470,7 +470,7 @@ impl RateLimiter {
|
||||
std::io::ErrorKind::WouldBlock => {
|
||||
return Err(Error::SpuriousRateLimiterEvent(
|
||||
"Rate limiter event handler called without a present timer",
|
||||
))
|
||||
));
|
||||
}
|
||||
_ => return Err(Error::TimerFdWaitError(err)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user