Skip to content

Commit

Permalink
fix: back to forbid unsafe (#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumichocopengin8 authored Nov 28, 2023
1 parent 2e963ce commit 6dd5d0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,7 @@
)]
#![deny(unreachable_pub)]
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)]
// can't be `forbid` since we've vendored code from hyper-util that contains `unsafe`
// when hyper-util is on crates.io we can stop vendoring it and go back to `forbid`
#![deny(unsafe_code)]
#![forbid(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
#![cfg_attr(test, allow(clippy::float_cmp))]
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
Expand Down

0 comments on commit 6dd5d0b

Please sign in to comment.