diff options
Diffstat (limited to 'cc/tests/support')
-rw-r--r-- | cc/tests/support/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/tests/support/mod.rs b/cc/tests/support/mod.rs index cae8151..72ca3fa 100644 --- a/cc/tests/support/mod.rs +++ b/cc/tests/support/mod.rs @@ -113,10 +113,12 @@ impl Execution { } pub fn must_have_in_order(&self, before: &str, after: &str) -> &Execution { - let before_position = self.args + let before_position = self + .args .iter() .rposition(|x| OsStr::new(x) == OsStr::new(before)); - let after_position = self.args + let after_position = self + .args .iter() .rposition(|x| OsStr::new(x) == OsStr::new(after)); match (before_position, after_position) { |