run cargo fix for rust 2024 changes and rustfmt
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e97952b7f6
commit
a1e1f40ded
320 changed files with 2212 additions and 2039 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue