From 4eb46b493fb9c7d76f4ef934802c03f22d89dc1a Mon Sep 17 00:00:00 2001 From: WillLillis Date: Fri, 28 Feb 2025 16:23:15 -0500 Subject: [PATCH] fix(rust): adapt to some new nightly lints (cherry picked from commit cb30ec5b17955b533048f53d942311d0ae666dc2) --- cli/generate/src/rules.rs | 1 - cli/src/tests/async_context_test.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/generate/src/rules.rs b/cli/generate/src/rules.rs index aa7d46ab..cd4aa482 100644 --- a/cli/generate/src/rules.rs +++ b/cli/generate/src/rules.rs @@ -306,7 +306,6 @@ impl Symbol { } impl From for Rule { - #[must_use] fn from(symbol: Symbol) -> Self { Self::Symbol(symbol) } diff --git a/cli/src/tests/async_context_test.rs b/cli/src/tests/async_context_test.rs index edcd5e4c..fbcc5c30 100644 --- a/cli/src/tests/async_context_test.rs +++ b/cli/src/tests/async_context_test.rs @@ -238,7 +238,7 @@ async fn yield_now() { SimpleYieldNow { yielded: false }.await; } -pub fn noop_waker() -> Waker { +pub const fn noop_waker() -> Waker { const VTABLE: RawWakerVTable = RawWakerVTable::new( // Cloning just returns a new no-op raw waker |_| RAW,