rate_limiter: trim qualified paths

Import the std modules used in the crate instead of spelling the full
paths at every use site.

Signed-off-by: Henry Hrvoje Tonkovac <htonkovac@gmail.com>
Assisted-by: Claude:Opus-4.8
This commit is contained in:
Henry Hrvoje Tonkovac
2026-06-14 17:54:28 +02:00
committed by Rob Bradford
parent 0e4e3277a9
commit fffa200240
2 changed files with 9 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ use core::panic::AssertUnwindSafe;
use std::fs::File;
use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
use std::sync::{Arc, Mutex};
use std::{io, result, thread};
use std::{io, panic, result, thread};
use log::{error, info, warn};
use thiserror::Error;
@@ -222,7 +222,7 @@ impl RateLimiterGroup {
thread::Builder::new()
.name(format!("rate-limit-group-{}", inner.id))
.spawn(move || {
let res = std::panic::catch_unwind(AssertUnwindSafe(move || {
let res = panic::catch_unwind(AssertUnwindSafe(move || {
const EPOLL_EVENTS_LEN: usize = 2;
let mut events =