Commit 2de7c2b
committed
Resolve redundant_static_lifetimes clippy lint from PR 2471
error: constants have by default a `'static` lifetime
--> serde/src/de/impls.rs:2467:24
|
2467 | pub const FIELDS: &'static [&'static str] = &["end"];
| -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `-D clippy::redundant-static-lifetimes` implied by `-D clippy::all`
error: constants have by default a `'static` lifetime
--> serde/src/de/impls.rs:2467:34
|
2467 | pub const FIELDS: &'static [&'static str] = &["end"];
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
error: constants have by default a `'static` lifetime
--> serde/src/de/impls.rs:2605:24
|
2605 | pub const FIELDS: &'static [&'static str] = &["start"];
| -^^^^^^^--------------- help: consider removing `'static`: `&[&'static str]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
error: constants have by default a `'static` lifetime
--> serde/src/de/impls.rs:2605:34
|
2605 | pub const FIELDS: &'static [&'static str] = &["start"];
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes1 parent e6a4a37 commit 2de7c2b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1450 | 1450 | | |
1451 | 1451 | | |
1452 | 1452 | | |
1453 | | - | |
| 1453 | + | |
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
| |||
2464 | 2464 | | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | | - | |
| 2467 | + | |
2468 | 2468 | | |
2469 | 2469 | | |
2470 | 2470 | | |
| |||
2602 | 2602 | | |
2603 | 2603 | | |
2604 | 2604 | | |
2605 | | - | |
| 2605 | + | |
2606 | 2606 | | |
2607 | 2607 | | |
2608 | 2608 | | |
| |||
0 commit comments