mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
fix: back to forbid unsafe
(#2365)
This commit is contained in:
parent
2e963cea9d
commit
6dd5d0be9d
1 changed files with 1 additions and 3 deletions
|
@ -413,9 +413,7 @@
|
||||||
)]
|
)]
|
||||||
#![deny(unreachable_pub)]
|
#![deny(unreachable_pub)]
|
||||||
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)]
|
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)]
|
||||||
// can't be `forbid` since we've vendored code from hyper-util that contains `unsafe`
|
#![forbid(unsafe_code)]
|
||||||
// when hyper-util is on crates.io we can stop vendoring it and go back to `forbid`
|
|
||||||
#![deny(unsafe_code)]
|
|
||||||
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
|
||||||
#![cfg_attr(test, allow(clippy::float_cmp))]
|
#![cfg_attr(test, allow(clippy::float_cmp))]
|
||||||
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
|
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
|
||||||
|
|
Loading…
Reference in a new issue