Skip to content

Commit 7df4a6e

Browse files
committed
Actually forbid unsafe code
The code of this crate is 100% safe Rust, but the lint setting in the README is not accurate.
1 parent 390dd47 commit 7df4a6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ cargo add async-h1
4747
```
4848

4949
## Safety
50-
This crate uses ``#![deny(unsafe_code)]`` to ensure everything is implemented in
50+
This crate uses ``#![forbid(unsafe_code)]`` to ensure everything is implemented in
5151
100% Safe Rust.
5252

5353
## Contributing

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
//! }
9292
//! ```
9393
94-
// #![forbid(unsafe_code, rust_2018_idioms)]
94+
#![forbid(unsafe_code, rust_2018_idioms)]
9595
#![deny(missing_debug_implementations, nonstandard_style)]
9696
#![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
9797
#![cfg_attr(test, deny(warnings))]

0 commit comments

Comments
 (0)