clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.82.0-nightly (fbccf5053 2024-07-27)
- cargo 1.82.0-nightly (5f6b9a922 2024-07-19)
- clippy 0.1.82 (fbccf50 2024-07-27)
Annotations
Check warning on line 65 in crates/helpers/src/substring.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> crates/helpers/src/substring.rs:65:24
|
65 | fn substring_after<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
65 - fn substring_after<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str> {
65 + fn substring_after<P: Pattern>(&self, pat: P) -> Option<&str> {
|
Check warning on line 49 in crates/helpers/src/substring.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> crates/helpers/src/substring.rs:49:25
|
49 | fn substring_before<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
49 - fn substring_before<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str> {
49 + fn substring_before<P: Pattern>(&self, pat: P) -> Option<&str> {
|
Check warning on line 38 in crates/helpers/src/substring.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> crates/helpers/src/substring.rs:38:24
|
38 | fn substring_after<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str>;
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
38 - fn substring_after<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str>;
38 + fn substring_after<P: Pattern>(&self, pat: P) -> Option<&str>;
|
Check warning on line 30 in crates/helpers/src/substring.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> crates/helpers/src/substring.rs:30:25
|
30 | fn substring_before<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str>;
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
30 - fn substring_before<'a, P: Pattern>(&'a self, pat: P) -> Option<&'a str>;
30 + fn substring_before<P: Pattern>(&self, pat: P) -> Option<&str>;
|