Make moves explicit in core tests
This commit is contained in:
@@ -179,8 +179,8 @@ pub mod test {
|
||||
#[test]
|
||||
pub fn test_from_port() {
|
||||
let (po, ch) = future_pipe::init();
|
||||
future_pipe::server::completed(ch, ~"whale");
|
||||
let f = from_port(po);
|
||||
future_pipe::server::completed(move ch, ~"whale");
|
||||
let f = from_port(move po);
|
||||
assert get(&f) == ~"whale";
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ pub mod test {
|
||||
pub fn test_sendable_future() {
|
||||
let expected = ~"schlorf";
|
||||
let f = do spawn |copy expected| { copy expected };
|
||||
do task::spawn {
|
||||
do task::spawn |move f, move expected| {
|
||||
let actual = get(&f);
|
||||
assert actual == expected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user