mirror of
https://github.com/rust-lang/cargo
synced 2024-09-19 07:41:57 +00:00
implement clippy suggestion to remove redundant to_string
This commit is contained in:
parent
37ec84d09a
commit
b3fe6b7d27
|
@ -1141,9 +1141,9 @@ impl Execs {
|
|||
|
||||
// Do the template replacements on the expected string.
|
||||
let matcher = match &self.process_builder {
|
||||
None => matcher.to_string(),
|
||||
None => matcher,
|
||||
Some(p) => match p.get_cwd() {
|
||||
None => matcher.to_string(),
|
||||
None => matcher,
|
||||
Some(cwd) => replace_path(&matcher, cwd, "[CWD]"),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue