-
Notifications
You must be signed in to change notification settings - Fork 595
Commit cd55b5a
committed
Ignore mismatched_lifetime_syntaxes lint
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:274:21
|
274 | pub fn entry<S>(&mut self, key: S) -> Entry
| ^^^^^^^^^ ----- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
274 | pub fn entry<S>(&mut self, key: S) -> Entry<'_>
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:303:17
|
303 | pub fn iter(&self) -> Iter {
| ^^^^^ ---- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
303 | pub fn iter(&self) -> Iter<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:311:21
|
311 | pub fn iter_mut(&mut self) -> IterMut {
| ^^^^^^^^^ ------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
311 | pub fn iter_mut(&mut self) -> IterMut<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:319:17
|
319 | pub fn keys(&self) -> Keys {
| ^^^^^ ---- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
319 | pub fn keys(&self) -> Keys<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:327:19
|
327 | pub fn values(&self) -> Values {
| ^^^^^ ------ the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
327 | pub fn values(&self) -> Values<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:335:23
|
335 | pub fn values_mut(&mut self) -> ValuesMut {
| ^^^^^^^^^ --------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
335 | pub fn values_mut(&mut self) -> ValuesMut<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/value/de.rs:1388:19
|
1388 | fn unexpected(&self) -> Unexpected {
| ^^^^^ ---------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
1388 | fn unexpected(&self) -> Unexpected<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/number.rs:798:30
|
798 | pub(crate) fn unexpected(&self) -> Unexpected {
| ^^^^^ ---------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
798 | pub(crate) fn unexpected(&self) -> Unexpected<'_> {
| ++++1 parent c1826eb commit cd55b5aCopy full SHA for cd55b5a
Expand file treeCollapse file tree
1 file changed
+1
-0
lines changed+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
| 369 | + | |
369 | 370 |
| |
370 | 371 |
| |
371 | 372 |
| |
|
0 commit comments