Avoid redundant '@ _' in match patterns.

https://github.com/rust-lang-nursery/rust-clippy/wiki#redundant_pattern
This commit is contained in:
Dan Gohman
2017-08-31 12:18:03 -07:00
parent ebbb836bb9
commit bc528917fd
2 changed files with 24 additions and 26 deletions

View File

@@ -68,7 +68,7 @@ pub fn translate_module(
ParserState::Error(BinaryReaderError { message, offset }) => {
return Err(format!("at offset {}: {}", offset, message));
}
ref s @ _ => panic!("modules should begin properly: {:?}", s),
ref s => panic!("modules should begin properly: {:?}", s),
}
let mut signatures = None;
let mut functions: Option<Vec<SignatureIndex>> = None;