Skip to content

Commit 633055b

Browse files
committed
fmt tests
1 parent de91e57 commit 633055b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: library/std/src/sync/mutex/tests.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::sync::atomic::{AtomicUsize, Ordering};
22
use crate::sync::mpsc::channel;
3-
use crate::sync::{Arc, Condvar, Mutex, MutexGuard, MappedMutexGuard};
3+
use crate::sync::{Arc, Condvar, MappedMutexGuard, Mutex, MutexGuard};
44
use crate::thread;
55

66
struct Packet<T>(Arc<(Mutex<T>, Condvar)>);
@@ -252,7 +252,6 @@ fn test_mutex_unsized() {
252252
assert_eq!(&*mutex.lock().unwrap(), comp);
253253
}
254254

255-
256255
#[test]
257256
fn test_mapping_mapped_guard() {
258257
let arr = [0; 4];

Diff for: library/std/src/sync/rwlock/tests.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use crate::sync::atomic::{AtomicUsize, Ordering};
22
use crate::sync::mpsc::channel;
3-
use crate::sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard, MappedRwLockReadGuard, MappedRwLockWriteGuard, TryLockError};
3+
use crate::sync::{
4+
Arc, MappedRwLockReadGuard, MappedRwLockWriteGuard, RwLock, RwLockReadGuard, RwLockWriteGuard,
5+
TryLockError,
6+
};
47
use crate::thread;
58
use rand::Rng;
69

0 commit comments

Comments
 (0)