run cargo fix for rust 2024 changes and rustfmt

Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
June Clementine Strawberry 2025-02-23 01:17:45 -05:00
parent e97952b7f6
commit a1e1f40ded
No known key found for this signature in database
320 changed files with 2212 additions and 2039 deletions

View file

@ -2,7 +2,7 @@
use std::{cell::Cell, fmt::Debug, path::PathBuf, sync::LazyLock};
use crate::{is_equal_to, Result};
use crate::{Result, is_equal_to};
type Id = usize;
@ -45,7 +45,7 @@ pub fn set_affinity<I>(mut ids: I)
where
I: Iterator<Item = Id> + Clone + Debug,
{
use core_affinity::{set_each_for_current, set_for_current, CoreId};
use core_affinity::{CoreId, set_each_for_current, set_for_current};
let n = ids.clone().count();
let mask: Mask = ids.clone().fold(0, |mask, id| {
@ -118,7 +118,7 @@ pub fn cores_available() -> impl Iterator<Item = Id> { from_mask(*CORES_AVAILABL
#[cfg(target_os = "linux")]
#[inline]
pub fn getcpu() -> Result<usize> {
use crate::{utils::math, Error};
use crate::{Error, utils::math};
// SAFETY: This is part of an interface with many low-level calls taking many
// raw params, but it's unclear why this specific call is unsafe. Nevertheless

View file

@ -3,7 +3,7 @@
use std::{
ffi::OsStr,
fs,
fs::{read_to_string, FileType},
fs::{FileType, read_to_string},
iter::IntoIterator,
path::{Path, PathBuf},
};
@ -11,9 +11,9 @@ use std::{
use libc::dev_t;
use crate::{
Result,
result::FlatOk,
utils::{result::LogDebugErr, string::SplitInfallible},
Result,
};
/// Device characteristics useful for random access throughput