Reformat using the new identifier sorting from rustfmt

This commit is contained in:
Michael Goulet
2024-09-22 19:05:04 -04:00
parent 1173204b36
commit c682aa162b
1455 changed files with 7152 additions and 8384 deletions

View File

@@ -162,12 +162,12 @@ use crate::any::Any;
use crate::cell::{Cell, OnceCell, UnsafeCell};
use crate::ffi::CStr;
use crate::marker::PhantomData;
use crate::mem::{self, forget, ManuallyDrop};
use crate::mem::{self, ManuallyDrop, forget};
use crate::num::NonZero;
use crate::pin::Pin;
use crate::ptr::addr_of_mut;
use crate::sync::atomic::{AtomicUsize, Ordering};
use crate::sync::Arc;
use crate::sync::atomic::{AtomicUsize, Ordering};
use crate::sys::sync::Parker;
use crate::sys::thread as imp;
use crate::sys_common::{AsInner, IntoInner};
@@ -178,7 +178,7 @@ use crate::{env, fmt, io, panic, panicking, str};
mod scoped;
#[stable(feature = "scoped_threads", since = "1.63.0")]
pub use scoped::{scope, Scope, ScopedJoinHandle};
pub use scoped::{Scope, ScopedJoinHandle, scope};
////////////////////////////////////////////////////////////////////////////////
// Thread-local storage

View File

@@ -1,8 +1,8 @@
use super::{current, park, Builder, JoinInner, Result, Thread};
use super::{Builder, JoinInner, Result, Thread, current, park};
use crate::marker::PhantomData;
use crate::panic::{catch_unwind, resume_unwind, AssertUnwindSafe};
use crate::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use crate::panic::{AssertUnwindSafe, catch_unwind, resume_unwind};
use crate::sync::Arc;
use crate::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use crate::{fmt, io};
/// A scope to spawn scoped threads in.

View File

@@ -2,7 +2,7 @@ use super::Builder;
use crate::any::Any;
use crate::panic::panic_any;
use crate::sync::atomic::{AtomicBool, Ordering};
use crate::sync::mpsc::{channel, Sender};
use crate::sync::mpsc::{Sender, channel};
use crate::sync::{Arc, Barrier};
use crate::thread::{self, Scope, ThreadId};
use crate::time::{Duration, Instant};