Skip to content

Commit 89bef50

Browse files
committed
Fix typo
1 parent e3edc06 commit 89bef50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/toml.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ fn normalize(package_root: &Path,
11271127
for bin in bins.iter() {
11281128
let path = bin.path.clone().unwrap_or_else(|| {
11291129
let default_bin_path = PathValue::Path(default(bin));
1130-
match package_root.join(p.to_path()).exists() {
1130+
match package_root.join(default_bin_path.to_path()).exists() {
11311131
true => default_bin_path, // inferred from bin's name
11321132
false => PathValue::Path(Path::new("src").join("main.rs"))
11331133
}

0 commit comments

Comments
 (0)