Commit 2ac9c38
committed
Resolve needless_borrow clippy lint in &[u8; N] deserialization
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/de.rs:82:12
|
82 | Ok(&arr)
| ^^^^ help: change this to: `arr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-W clippy::needless-borrow` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::needless_borrow)]`1 parent 5ea2adb commit 2ac9c38
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments