Skip to content

Commit

Permalink
Actually forbid unsafe code
Browse files Browse the repository at this point in the history
The code of this crate is 100% safe Rust, but the lint setting in the
README is not accurate.
  • Loading branch information
mbrubeck committed Feb 25, 2020
1 parent 390dd47 commit 7df4a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ cargo add async-h1
```

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

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
//! }
//! ```
// #![forbid(unsafe_code, rust_2018_idioms)]
#![forbid(unsafe_code, rust_2018_idioms)]
#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
#![cfg_attr(test, deny(warnings))]
Expand Down

0 comments on commit 7df4a6e

Please sign in to comment.