Skip to content

Commit cd55b5a

Browse files
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 cd55b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@
366366
#![deny(missing_docs)]
367367
#![no_std]
368368
#![cfg_attr(docsrs, feature(doc_cfg))]
369+
#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
369370

370371
#[cfg(not(any(feature = "std", feature = "alloc")))]
371372
compile_error! {

0 commit comments

Comments
 (0)