mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Format remaining files
This commit is contained in:
parent
bf47f90da6
commit
cb07debcb6
252 changed files with 5944 additions and 3744 deletions
|
@ -60,7 +60,8 @@ fn trylock_works() {
|
|||
thread::spawn(move || {
|
||||
let lock = m2.try_lock();
|
||||
assert!(lock.is_err());
|
||||
}).join()
|
||||
})
|
||||
.join()
|
||||
.unwrap();
|
||||
let _lock3 = m.try_lock().unwrap();
|
||||
}
|
||||
|
@ -84,7 +85,8 @@ fn poison_works() {
|
|||
let _answer = Answer(lock2);
|
||||
println!("Intentionally panicking.");
|
||||
panic!("What the answer to my lifetimes dilemma is?");
|
||||
}).join();
|
||||
})
|
||||
.join();
|
||||
assert!(result.is_err());
|
||||
let r = m.lock().err().unwrap().into_inner();
|
||||
assert_eq!(*r.borrow(), 42);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue