Skip to content

Commit 95f67a0

Browse files
committed
Ignore return_self_not_must_use clippy lint
error: missing `#[must_use]` attribute on a method returning `Self` --> src/map.rs:595:5 | 595 | / pub fn and_modify<F>(self, f: F) -> Self 596 | | where 597 | | F: FnOnce(&mut Value), 598 | | { ... | 605 | | } 606 | | } | |_____^ | = 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/value/mod.rs:836:5 | 836 | / pub fn take(&mut self) -> Value { 837 | | mem::replace(self, Value::Null) 838 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
1 parent 296f718 commit 95f67a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
clippy::match_single_binding,
314314
clippy::needless_doctest_main,
315315
clippy::needless_late_init,
316+
clippy::return_self_not_must_use,
316317
clippy::transmute_ptr_to_ptr,
317318
clippy::unnecessary_wraps,
318319
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704

0 commit comments

Comments
 (0)