Skip to content

Commit 9957ce6

Browse files
author
Jon Gjengset
committed
Mixed up boolean condition
1 parent 862ec56 commit 9957ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ impl<T: Into<String>> From<T> for OverrideFile {
5454
if Path::new(&override_).is_absolute() {
5555
Self {
5656
toolchain: ToolchainSection {
57-
channel: Some(override_),
57+
path: Some(PathBuf::from(override_)),
5858
..Default::default()
5959
},
6060
}
6161
} else {
6262
Self {
6363
toolchain: ToolchainSection {
64-
path: Some(PathBuf::from(override_)),
64+
channel: Some(override_),
6565
..Default::default()
6666
},
6767
}

0 commit comments

Comments
 (0)