Skip to content
Myr

Turn on deny(unsafe_op_in_unsafe_fn)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 539e831 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:src/lib.rs+5 added
213 unmodified lines
214#![cfg_attr(backtrace, feature(error_generic_member_access))]215#![cfg_attr(doc_cfg, feature(doc_cfg))]216#![cfg_attr(not(feature = "std"), no_std)]217#![deny(dead_code, unused_imports, unused_mut)]218#![cfg_attr(219 not(anyhow_no_unsafe_op_in_unsafe_fn_lint),220 deny(unsafe_op_in_unsafe_fn)221)]222#![cfg_attr(anyhow_no_unsafe_op_in_unsafe_fn_lint, allow(unused_unsafe))]223#![allow(224 clippy::doc_markdown,225 clippy::enum_glob_use,226 clippy::explicit_auto_deref,
469 unmodified lines