Skip to content

Commit a2b4ff3

Browse files
committed
Ignore return_self_not_must_use clippy lint
error: missing `#[must_use]` attribute on a method returning `Self` --> src/lib.rs:437:5 | 437 | / pub fn resolved_at(&self, other: Span) -> Span { 438 | | Span::_new(self.inner.resolved_at(other.inner)) 439 | | } | |_____^ | = note: `-D clippy::return-self-not-must-use` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use error: missing `#[must_use]` attribute on a method returning `Self` --> src/lib.rs:443:5 | 443 | / pub fn located_at(&self, other: Span) -> Span { 444 | | Span::_new(self.inner.located_at(other.inner)) 445 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
1 parent 5671a59 commit a2b4ff3

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
@@ -98,6 +98,7 @@
9898
clippy::manual_assert,
9999
clippy::must_use_candidate,
100100
clippy::needless_doctest_main,
101+
clippy::return_self_not_must_use,
101102
clippy::shadow_unrelated,
102103
clippy::trivially_copy_pass_by_ref,
103104
clippy::unnecessary_wraps,

0 commit comments

Comments
 (0)