We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee1e9e commit 9078deaCopy full SHA for 9078dea
futures-util/src/compat/compat03as01.rs
@@ -180,7 +180,6 @@ impl Current {
180
181
fn as_waker(&self) -> WakerRef<'_> {
182
unsafe fn ptr_to_current<'a>(ptr: *const ()) -> &'a Current {
183
- #[allow(clippy::cast_ptr_alignment)]
184
&*(ptr as *const Current)
185
}
186
fn current_to_ptr(current: &Current) -> *const () {
futures-util/src/task/waker_ref.rs
@@ -63,7 +63,6 @@ where
63
{
64
// This uses the same mechanism as Arc::into_raw, without needing a reference.
65
// This is potentially not stable
66
- #![allow(clippy::cast_ptr_alignment)]
67
let ptr = &*wake as &W as *const W as *const ();
68
69
// Similar to `waker_vtable`, but with a no-op `drop` function.
0 commit comments