Skip to content

Commit

Permalink
Fix rust-lang/rust#35203 warning/error
Browse files Browse the repository at this point in the history
rust-lang/rust#35203 made patterns in functions without body into a warn by default lint (which is being `deny`ed here).
  • Loading branch information
TimNN authored Oct 26, 2016
1 parent f265c77 commit 81dfab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cargotest/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ pub fn shell_writes<T: fmt::Display>(string: T) -> ShellWrites {
}

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

impl<T> Tap for T {
Expand Down

0 comments on commit 81dfab4

Please sign in to comment.