mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Fix some warnings in util.
This commit is contained in:
parent
d553bfefbb
commit
1e858ecbc6
4 changed files with 13 additions and 8 deletions
|
@ -14,7 +14,7 @@ pub fn spawn_named<F>(name: String, f: F)
|
|||
let builder = thread::Builder::new().name(name);
|
||||
builder.spawn(move || {
|
||||
f()
|
||||
});
|
||||
}).unwrap();
|
||||
}
|
||||
|
||||
/// Arrange to send a particular message to a channel if the task fails.
|
||||
|
@ -40,7 +40,7 @@ pub fn spawn_named_with_send_on_failure<F, T>(name: &'static str,
|
|||
dest.send(msg).unwrap();
|
||||
}
|
||||
}
|
||||
});
|
||||
}).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue