aboutsummaryrefslogtreecommitdiffstats
path: root/components/remutex
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2018-11-06 13:01:35 +0100
committerPyfisch <pyfisch@gmail.com>2018-11-06 22:30:31 +0100
commitcb07debcb6f3d3561177ce536c320986720791b7 (patch)
treeccac4d5a48b3112230f3fc2e873753dd7263e9fb /components/remutex
parentbf47f90da667e95eaffc8fee36ca8a88e72e276c (diff)
downloadservo-cb07debcb6f3d3561177ce536c320986720791b7.tar.gz
servo-cb07debcb6f3d3561177ce536c320986720791b7.zip
Format remaining files
Diffstat (limited to 'components/remutex')
-rw-r--r--components/remutex/tests/smoke.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/remutex/tests/smoke.rs b/components/remutex/tests/smoke.rs
index 31ac9d48402..743bdfec167 100644
--- a/components/remutex/tests/smoke.rs
+++ b/components/remutex/tests/smoke.rs
@@ -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);