implement clippy suggestion to remove redundant to_string

This commit is contained in:
Igor Makarov 2019-11-10 11:23:50 +02:00
parent 37ec84d09a
commit b3fe6b7d27

View file

@ -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]"),
},
};