mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
Use [lints] to address unexpected_cfgs lint (#762)
This commit is contained in:
@@ -33,3 +33,8 @@ loom = "0.7"
|
|||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(loom)',
|
||||||
|
] }
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![allow(unknown_lints, unexpected_cfgs)]
|
|
||||||
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
||||||
#![doc(test(
|
#![doc(test(
|
||||||
no_crate_inject,
|
no_crate_inject,
|
||||||
|
|||||||
Reference in New Issue
Block a user