mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
suppress clippy lint inefficient_to_string
- according to reviewers' preference
This commit is contained in:
parent
1c5861c8b4
commit
2a49ac94d0
@ -106,6 +106,7 @@ dependency.
|
||||
*/
|
||||
|
||||
#![allow(clippy::needless_doctest_main)] // according to @ehuss this lint is fussy
|
||||
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
|
||||
|
||||
use std::env;
|
||||
use std::ffi::OsStr;
|
||||
|
@ -17,6 +17,7 @@
|
||||
#![allow(clippy::type_complexity)] // there's an exceptionally complex type
|
||||
#![allow(clippy::wrong_self_convention)] // perhaps `Rc` should be special-cased in Clippy?
|
||||
#![allow(clippy::write_with_newline)] // too pedantic
|
||||
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
|
||||
#![warn(clippy::needless_borrow)]
|
||||
#![warn(clippy::redundant_clone)]
|
||||
// Unit is now interned, and would probably be better as pass-by-copy, but
|
||||
|
@ -4,6 +4,7 @@
|
||||
#![allow(clippy::explicit_iter_loop)]
|
||||
#![allow(clippy::redundant_closure)]
|
||||
#![allow(clippy::block_in_if_condition_stmt)] // clippy doesn't agree with rustfmt 😂
|
||||
#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()`
|
||||
#![warn(clippy::needless_borrow)]
|
||||
#![warn(clippy::redundant_clone)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user