Skip to content

Commit

Permalink
Fix wrong clippy warning
Browse files Browse the repository at this point in the history
The new lint `clippy::only_used_in_recursion` is buggy when used in traits.
rust-lang/rust-clippy#8560
  • Loading branch information
jonasbb committed Mar 21, 2022
1 parent b129b5a commit c94da71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions serde_with/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#![doc(test(no_crate_inject))]
#![doc(html_root_url = "https://docs.rs/serde_with/1.12.0")]
#![cfg_attr(docsrs, feature(doc_cfg))]
// clippy is broken and shows wrong warnings
// clippy on stable does not know yet about the lint name
// https://github.com/rust-lang/rust-clippy/issues/8560
#![allow(unknown_lints, clippy::only_used_in_recursion)]

//! [![crates.io badge](https://img.shields.io/crates/v/serde_with.svg)](https://crates.io/crates/serde_with/)
//! [![Build Status](https://github.com/jonasbb/serde_with/workflows/Rust%20CI/badge.svg)](https://github.com/jonasbb/serde_with)
Expand Down

0 comments on commit c94da71

Please sign in to comment.