-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit 392fa6c
committed
Ignore needless_pass_by_value pedantic clippy lint in test
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:101:24
|
101 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
= note: `-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]`
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:149:24
|
149 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:167:24
|
167 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:194:24
|
194 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:265:24
|
265 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:281:24
|
281 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
warning: this argument is passed by value, but not consumed in the function body
--> tests/test.rs:320:24
|
320 | fn assert(literal: Literal, expected: &str) {
| ^^^^^^^ help: consider taking a reference instead: `&Literal`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value1 parent 1ff5c1f commit 392fa6cCopy full SHA for 392fa6c
File tree
Expand file treeCollapse file tree
1 file changed
+1
-0
lines changedOpen diff view settings
Filter options
- tests
Expand file treeCollapse file tree
1 file changed
+1
-0
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments