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,