How to disable a clippy lint for a single line / block? [duplicate]
The docs state you can allow or deny lints. #[allow(clippy::wrong_self_convention)] pub fn to_vec_sorted<U, F>(self, mapper: F) -> Vec<U> And ,if you want to disable all 1 of them: #[allow(clippy::all)] pub fn to_vec_sorted<U, F>(self, mapper: F) -> Vec<U> 1: clippy:all doesn’t actually allow all lints, rather everything contained by correctness, suspicious, style, complexity, cargo, and perf. … Read more