Skip to content

Commit 47a831c

Browse files
committed
Ignore unnecessary_cast clippy false positive
warning: casting raw pointers to the same type and constness is unnecessary (`*const dyn of::NonStaticAny` -> `*const dyn of::NonStaticAny`) --> src/lib.rs:219:11 | 219 | &*(&phantom_data as *const dyn NonStaticAny as *const (dyn NonStaticAny + 'static)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&phantom_data as *const dyn NonStaticAny` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
1 parent a716d18 commit 47a831c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@
107107
108108
#![no_std]
109109
#![doc(html_root_url = "https://docs.rs/typeid/1.0.1")]
110-
#![allow(clippy::doc_markdown, clippy::inline_always)]
110+
#![allow(
111+
clippy::doc_markdown,
112+
clippy::inline_always,
113+
clippy::unnecessary_cast, // https://github.com/rust-lang/rust-clippy/issues/12860
114+
)]
111115

112116
extern crate self as typeid;
113117

0 commit comments

Comments
 (0)