fix(rust): adapt to some new nightly lints
(cherry picked from commit cb30ec5b17)
This commit is contained in:
parent
d73126d582
commit
4eb46b493f
2 changed files with 1 additions and 2 deletions
|
|
@ -306,7 +306,6 @@ impl Symbol {
|
|||
}
|
||||
|
||||
impl From<Symbol> for Rule {
|
||||
#[must_use]
|
||||
fn from(symbol: Symbol) -> Self {
|
||||
Self::Symbol(symbol)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue