Skip to content

Commit 2a49ac9

Browse files
committed
suppress clippy lint inefficient_to_string - according to reviewers' preference
1 parent 1c5861c commit 2a49ac9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

crates/cargo-test-support/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ dependency.
106106
*/
107107

108108
#![allow(clippy::needless_doctest_main)] // according to @ehuss this lint is fussy
109+
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
109110

110111
use std::env;
111112
use std::ffi::OsStr;

src/cargo/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#![allow(clippy::type_complexity)] // there's an exceptionally complex type
1818
#![allow(clippy::wrong_self_convention)] // perhaps `Rc` should be special-cased in Clippy?
1919
#![allow(clippy::write_with_newline)] // too pedantic
20+
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
2021
#![warn(clippy::needless_borrow)]
2122
#![warn(clippy::redundant_clone)]
2223
// Unit is now interned, and would probably be better as pass-by-copy, but

tests/testsuite/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#![allow(clippy::explicit_iter_loop)]
55
#![allow(clippy::redundant_closure)]
66
#![allow(clippy::block_in_if_condition_stmt)] // clippy doesn't agree with rustfmt 😂
7+
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
78
#![warn(clippy::needless_borrow)]
89
#![warn(clippy::redundant_clone)]
910

0 commit comments

Comments
 (0)