From 765b954dae651194c6e691095c913a2379877fbc Mon Sep 17 00:00:00 2001 From: Tee8z Date: Wed, 4 Nov 2026 15:53:20 -0500 Subject: [PATCH] fix(sdk): use std's no-op waker in the sharing policy test helper Rust 1.98.1, which the upstream sync brought in, flags the hand-written no-op `Wake` impl (clippy::manual_noop_waker), failing `just clippy` on main. Use `Waker::noop()` instead. Signed-off-by: Tee8z --- crates/buzz-sdk/src/sharing/policy/tests.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/buzz-sdk/src/sharing/policy/tests.rs b/crates/buzz-sdk/src/sharing/policy/tests.rs index 86fc23a1a99..ac4a7ac0351 100644 --- a/crates/buzz-sdk/src/sharing/policy/tests.rs +++ b/crates/buzz-sdk/src/sharing/policy/tests.rs @@ -2,8 +2,7 @@ use super::*; use nostr::{EventBuilder, Keys, Tag, Timestamp}; use std::{ future::{ready, Future}, - sync::Arc, - task::{Context, Poll, Wake, Waker}, + task::{Context, Poll, Waker}, }; use uuid::Uuid; @@ -157,12 +156,7 @@ impl Fixture { } } fn complete(future: F) -> F::Output { - struct Noop; - impl Wake for Noop { - fn wake(self: Arc) {} - } - let waker = Waker::from(Arc::new(Noop)); - match std::pin::pin!(future).poll(&mut Context::from_waker(&waker)) { + match std::pin::pin!(future).poll(&mut Context::from_waker(Waker::noop())) { Poll::Ready(result) => result, Poll::Pending => panic!("fixture futures must complete immediately"), }