From 30d600789321f8fddb2299069cfc747d383747a3 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Fri, 26 Nov 2021 12:23:03 +0000 Subject: [PATCH] uevent: Fix clippy issue in test code Remove a bare `return` from a test function. This looks wrong but isn't because the callers are all tests that just wait for a state change caused by this test function. Signed-off-by: James O. D. Hunt --- src/agent/src/uevent.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/agent/src/uevent.rs b/src/agent/src/uevent.rs index bfd6e98312..5d1f554940 100644 --- a/src/agent/src/uevent.rs +++ b/src/agent/src/uevent.rs @@ -239,7 +239,6 @@ pub(crate) fn spawn_test_watcher(sandbox: Arc>, uev: Uevent) { if matcher.is_match(&uev) { let (_, sender) = watch.take().unwrap(); let _ = sender.send(uev.clone()); - return; } } });