fix(rust): adapt to some new nightly lints

(cherry picked from commit cb30ec5b17)
This commit is contained in:
WillLillis 2025-02-28 16:23:15 -05:00 committed by Christian Clason
parent d73126d582
commit 4eb46b493f
2 changed files with 1 additions and 2 deletions

View file

@ -306,7 +306,6 @@ impl Symbol {
}
impl From<Symbol> for Rule {
#[must_use]
fn from(symbol: Symbol) -> Self {
Self::Symbol(symbol)
}

View file

@ -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,