diff --git a/tests/cargotest/support/mod.rs b/tests/cargotest/support/mod.rs index 6de6df19764..e647b7af021 100644 --- a/tests/cargotest/support/mod.rs +++ b/tests/cargotest/support/mod.rs @@ -608,7 +608,7 @@ pub fn shell_writes(string: T) -> ShellWrites { } pub trait Tap { - fn tap(mut self, callback: F) -> Self; + fn tap(self, callback: F) -> Self; } impl Tap for T {