Skip to content

Commit cb2e137

Browse files
committed
dogfood
1 parent 641921f commit cb2e137

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/compile-test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ fn base_config(test_dir: &str) -> (compiletest::Config, Args) {
132132
target: None,
133133
out_dir: canonicalize(
134134
std::env::var_os("CARGO_TARGET_DIR")
135-
.map(PathBuf::from)
136-
.unwrap_or_else(|| std::env::current_dir().unwrap().join("target")),
135+
.map_or_else(|| std::env::current_dir().unwrap().join("target"), PathBuf::from),
137136
)
138137
.join("ui_test"),
139138
..compiletest::Config::rustc(Path::new("tests").join(test_dir))

0 commit comments

Comments
 (0)