Skip to content

Commit 2b45680

Browse files
Merge pull request #993 from charlespierce/cleanup
Fix Windows Builds and Clippy Warnings
2 parents ab1b36d + 8648e01 commit 2b45680

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/volta-core/src/platform/tests.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@ fn test_image_path() {
9191

9292
#[cfg(windows)]
9393
fn test_image_path() {
94-
let mut pathbufs: Vec<PathBuf> = Vec::new();
95-
pathbufs.push(volta_home().unwrap().shim_dir().to_owned());
96-
pathbufs.push(PathBuf::from("C:\\\\somebin"));
97-
pathbufs.push(volta_install().unwrap().root().to_owned());
98-
pathbufs.push(PathBuf::from("D:\\\\ProbramFlies"));
94+
let pathbufs = vec![
95+
volta_home().unwrap().shim_dir().to_owned(),
96+
PathBuf::from("C:\\\\somebin"),
97+
volta_install().unwrap().root().to_owned(),
98+
PathBuf::from("D:\\\\ProbramFlies"),
99+
];
99100

100101
let path_with_shims = std::env::join_paths(pathbufs.iter())
101102
.unwrap()
@@ -191,11 +192,12 @@ fn test_system_path() {
191192

192193
#[cfg(windows)]
193194
fn test_system_path() {
194-
let mut pathbufs: Vec<PathBuf> = Vec::new();
195-
pathbufs.push(volta_home().unwrap().shim_dir().to_owned());
196-
pathbufs.push(PathBuf::from("C:\\\\somebin"));
197-
pathbufs.push(volta_install().unwrap().root().to_owned());
198-
pathbufs.push(PathBuf::from("D:\\\\ProbramFlies"));
195+
let pathbufs = vec![
196+
volta_home().unwrap().shim_dir().to_owned(),
197+
PathBuf::from("C:\\\\somebin"),
198+
volta_install().unwrap().root().to_owned(),
199+
PathBuf::from("D:\\\\ProbramFlies"),
200+
];
199201

200202
let path_with_shims = std::env::join_paths(pathbufs.iter())
201203
.unwrap()

crates/volta-core/src/project/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ impl Project {
114114

115115
Ok(Project {
116116
manifest_file,
117-
dependencies,
118117
workspace_manifests,
118+
dependencies,
119119
platform,
120120
})
121121
}

0 commit comments

Comments
 (0)