Skip to content

Commit 9078dea

Browse files
taiki-ecramertj
authored andcommitted
Remove #[allow(clippy::cast_ptr_alignment)]
1 parent aee1e9e commit 9078dea

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

futures-util/src/compat/compat03as01.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ impl Current {
180180

181181
fn as_waker(&self) -> WakerRef<'_> {
182182
unsafe fn ptr_to_current<'a>(ptr: *const ()) -> &'a Current {
183-
#[allow(clippy::cast_ptr_alignment)]
184183
&*(ptr as *const Current)
185184
}
186185
fn current_to_ptr(current: &Current) -> *const () {

futures-util/src/task/waker_ref.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ where
6363
{
6464
// This uses the same mechanism as Arc::into_raw, without needing a reference.
6565
// This is potentially not stable
66-
#![allow(clippy::cast_ptr_alignment)]
6766
let ptr = &*wake as &W as *const W as *const ();
6867

6968
// Similar to `waker_vtable`, but with a no-op `drop` function.

0 commit comments

Comments
 (0)