Skip to content

Commit 81dfab4

Browse files
authored
Fix rust-lang/rust#35203 warning/error
rust-lang/rust#35203 made patterns in functions without body into a warn by default lint (which is being `deny`ed here).
1 parent f265c77 commit 81dfab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/cargotest/support/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ pub fn shell_writes<T: fmt::Display>(string: T) -> ShellWrites {
608608
}
609609

610610
pub trait Tap {
611-
fn tap<F: FnOnce(&mut Self)>(mut self, callback: F) -> Self;
611+
fn tap<F: FnOnce(&mut Self)>(self, callback: F) -> Self;
612612
}
613613

614614
impl<T> Tap for T {

0 commit comments

Comments
 (0)