Skip to content

Commit

Permalink
Fix clippy::unnecessary_cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 31, 2020
1 parent 4122f3d commit e363f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion futures/tests/join_all.rs
Expand Up @@ -37,7 +37,7 @@ fn join_all_iter_lifetime() {
Box::new(join_all(iter))
}

util::assert_done(|| sizes(vec![&[1,2,3], &[], &[0]]), vec![3 as usize, 0, 1]);
util::assert_done(|| sizes(vec![&[1,2,3], &[], &[0]]), vec![3_usize, 0, 1]);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion futures/tests/try_join_all.rs
Expand Up @@ -42,7 +42,7 @@ fn try_join_all_iter_lifetime() {
Box::new(try_join_all(iter))
}

assert_done(|| sizes(vec![&[1,2,3], &[], &[0]]), Ok(vec![3 as usize, 0, 1]));
assert_done(|| sizes(vec![&[1,2,3], &[], &[0]]), Ok(vec![3_usize, 0, 1]));
}

#[test]
Expand Down

0 comments on commit e363f18

Please sign in to comment.