aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
authorJon Gjengset <[email protected]>2020-12-17 18:24:58 +0000
committerJon Gjengset <[email protected]>2020-12-17 18:24:58 +0000
commitfaed47b3d31d2bf533aac489046ed9efc30f239d (patch)
tree54a33460c7d93e8a6585f56d577e9fbbd65df7b9 /crates/project_model
parent71478e067be8ce1a7cf9f5ec3ed654f8c204017f (diff)
Fun times with rustfmt
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/cargo_workspace.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/project_model/src/cargo_workspace.rs b/crates/project_model/src/cargo_workspace.rs
index 4d339d9c0..bb3b6f2ef 100644
--- a/crates/project_model/src/cargo_workspace.rs
+++ b/crates/project_model/src/cargo_workspace.rs
@@ -178,8 +178,7 @@ impl CargoWorkspace {
178 match utf8_stdout(rustc) { 178 match utf8_stdout(rustc) {
179 Ok(stdout) => { 179 Ok(stdout) => {
180 let field = "host: "; 180 let field = "host: ";
181 let target = 181 let target = stdout.lines().find_map(|l| l.strip_prefix(field));
182 stdout.lines().find_map(|l| l.strip_prefix(field));
183 if let Some(target) = target { 182 if let Some(target) = target {
184 Some(target.to_string()) 183 Some(target.to_string())
185 } else { 184 } else {