Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve needless_borrow clippy lints
error: this expression borrows a reference (`&ast::Field`) that is immediately dereferenced by the compiler --> impl/src/prop.rs:68:25 | 68 | return Some(&field); | ^^^^^^ help: change this to: `field` | = note: `-D clippy::needless-borrow` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&ast::Field`) that is immediately dereferenced by the compiler --> impl/src/prop.rs:77:25 | 77 | return Some(&field); | ^^^^^^ help: change this to: `field` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&ast::Field`) that is immediately dereferenced by the compiler --> impl/src/prop.rs:82:70 | 82 | Member::Named(ident) if ident == "source" => return Some(&field), | ^^^^^^ help: change this to: `field` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&ast::Field`) that is immediately dereferenced by the compiler --> impl/src/prop.rs:92:25 | 92 | return Some(&field); | ^^^^^^ help: change this to: `field` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&ast::Field`) that is immediately dereferenced by the compiler --> impl/src/prop.rs:97:25 | 97 | return Some(&field); | ^^^^^^ help: change this to: `field` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&syn::Type`) that is immediately dereferenced by the compiler --> impl/src/valid.rs:191:41 | 191 | if contains_non_static_lifetime(&source_field.ty) { | ^^^^^^^^^^^^^^^^ help: change this to: `source_field.ty` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
- Loading branch information