1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

More Windows complaints.

This commit is contained in:
Martin Hoffmann
2019-11-29 01:19:51 +01:00
parent 3dd324a4bd
commit 46f58b816f

View File

@ -997,7 +997,6 @@ impl SignalWait {
/// Waits for the next thing to do. /// Waits for the next thing to do.
/// ///
/// Returns what to do. /// Returns what to do.
#[allow(clippy::needless_return)]
pub fn wait( pub fn wait(
&mut self, runtime: &mut Runtime, timeout: Duration &mut self, runtime: &mut Runtime, timeout: Duration
) -> UserSignal { ) -> UserSignal {
@ -1052,7 +1051,7 @@ impl SignalWait {
/// ///
/// Returns whether to continue working. /// Returns whether to continue working.
pub fn wait( pub fn wait(
&self, _runtime: &mut Runtime, timeout: Duration &mut self, _runtime: &mut Runtime, timeout: Duration
) -> UserSignal { ) -> UserSignal {
std::thread::sleep(timeout); std::thread::sleep(timeout);
UserSignal::NoSignal UserSignal::NoSignal