diff options
| author | Lucas Kent <rubickent@gmail.com> | 2021-12-17 18:36:18 +1100 |
|---|---|---|
| committer | Lucas Kent <rubickent@gmail.com> | 2022-01-09 14:09:25 +1100 |
| commit | 08829853d3c69f68a5a09fb4bcc53ca87d373a78 (patch) | |
| tree | 338b04e9ccd5b0aabb6f128f23704013c3d11508 /compiler/rustc_incremental/src | |
| parent | 23ce5fc4655ed546f74a85fc8836e95bec0c64fd (diff) | |
| download | rust-08829853d3c69f68a5a09fb4bcc53ca87d373a78.tar.gz rust-08829853d3c69f68a5a09fb4bcc53ca87d373a78.zip | |
eplace usages of vec![].into_iter with [].into_iter
Diffstat (limited to 'compiler/rustc_incremental/src')
| -rw-r--r-- | compiler/rustc_incremental/src/persist/fs/tests.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_incremental/src/persist/fs/tests.rs b/compiler/rustc_incremental/src/persist/fs/tests.rs index 652ef6bcdce..184796948b6 100644 --- a/compiler/rustc_incremental/src/persist/fs/tests.rs +++ b/compiler/rustc_incremental/src/persist/fs/tests.rs @@ -13,7 +13,7 @@ fn test_all_except_most_recent() { .keys() .cloned() .collect::<FxHashSet<PathBuf>>(), - vec![PathBuf::from("1"), PathBuf::from("2"), PathBuf::from("3"), PathBuf::from("4"),] + [PathBuf::from("1"), PathBuf::from("2"), PathBuf::from("3"), PathBuf::from("4"),] .into_iter() .collect::<FxHashSet<PathBuf>>() ); @@ -40,7 +40,7 @@ fn test_find_source_directory_in_iter() { // Find newest assert_eq!( find_source_directory_in_iter( - vec![ + [ PathBuf::from("crate-dir/s-3234-0000-svh"), PathBuf::from("crate-dir/s-2234-0000-svh"), PathBuf::from("crate-dir/s-1234-0000-svh") @@ -54,7 +54,7 @@ fn test_find_source_directory_in_iter() { // Filter out "-working" assert_eq!( find_source_directory_in_iter( - vec![ + [ PathBuf::from("crate-dir/s-3234-0000-working"), PathBuf::from("crate-dir/s-2234-0000-svh"), PathBuf::from("crate-dir/s-1234-0000-svh") @@ -66,12 +66,12 @@ fn test_find_source_directory_in_iter() { ); // Handle empty - assert_eq!(find_source_directory_in_iter(vec![].into_iter(), &already_visited), None); + assert_eq!(find_source_directory_in_iter([].into_iter(), &already_visited), None); // Handle only working assert_eq!( find_source_directory_in_iter( - vec