From 1319dcddc0a9c6f2060d22630658dfcdca4913b2 Mon Sep 17 00:00:00 2001 From: icycrystal4 Date: Tue, 7 Nov 2023 10:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/src/disable.rs | 2 +- rt/src/timeout.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/log/src/disable.rs b/log/src/disable.rs index 4e6a45c1e..5895d8404 100644 --- a/log/src/disable.rs +++ b/log/src/disable.rs @@ -2,7 +2,7 @@ macro_rules! noop{ ($($arg:tt)+) => { { - let _ = &format_args!($($arg)+); + let _ = format_args!($($arg)+); () } }; diff --git a/rt/src/timeout.rs b/rt/src/timeout.rs index 093513c28..8b20147a9 100644 --- a/rt/src/timeout.rs +++ b/rt/src/timeout.rs @@ -1,8 +1,6 @@ use std::task::{ready, Context, Poll}; -use ds::time::{interval, Interval}; - -use ds::time::Duration; +use ds::time::{interval, Duration, Interval}; use super::entry::ReEnter;