diff --git a/rate_limiter/src/group.rs b/rate_limiter/src/group.rs index 6a070b72a..51e18196a 100644 --- a/rate_limiter/src/group.rs +++ b/rate_limiter/src/group.rs @@ -23,23 +23,23 @@ pub enum Error { ThreadSpawn(#[source] io::Error), /// Cannot create epoll context. - #[error("Error creating epoll context: {0}")] + #[error("Error creating epoll context")] Epoll(#[source] io::Error), /// Cannot create EventFd. - #[error("Error creating EventFd: {0}")] + #[error("Error creating EventFd")] EventFd(#[source] io::Error), /// Cannot create RateLimiter. - #[error("Error creating RateLimiter: {0}")] + #[error("Error creating RateLimiter")] RateLimiter(#[source] io::Error), /// Cannot read from EventFd. - #[error("Error reading from EventFd: {0}")] + #[error("Error reading from EventFd")] EventFdRead(#[source] io::Error), /// Cannot write to EventFd. - #[error("Error writing to EventFd: {0}")] + #[error("Error writing to EventFd")] EventFdWrite(#[source] io::Error), } diff --git a/rate_limiter/src/lib.rs b/rate_limiter/src/lib.rs index 6f74d4c16..4202bfd1a 100644 --- a/rate_limiter/src/lib.rs +++ b/rate_limiter/src/lib.rs @@ -65,7 +65,7 @@ pub enum Error { #[error("Event handler was called spuriously: {0}")] SpuriousRateLimiterEvent(&'static str), /// The event handler encounters while TimerFd::wait() - #[error("Failed to wait for the timer: {0}")] + #[error("Failed to wait for the timer")] TimerFdWaitError(#[source] std::io::Error), }