Avoid matching with reference patterns.
https://github.com/rust-lang-nursery/rust-clippy/wiki#match_ref_pats
This commit is contained in:
@@ -132,8 +132,8 @@ pub fn parse_export_section(
|
||||
ref kind,
|
||||
index,
|
||||
} => {
|
||||
match kind {
|
||||
&ExternalKind::Function => {
|
||||
match *kind {
|
||||
ExternalKind::Function => {
|
||||
exports.insert(
|
||||
index as FunctionIndex,
|
||||
String::from(from_utf8(field).unwrap()),
|
||||
|
||||
Reference in New Issue
Block a user