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 <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2021-11-26 12:23:03 +00:00 committed by Eric Ernst
parent 365e358115
commit 63c5a8aa53

View File

@ -240,7 +240,6 @@ pub(crate) fn spawn_test_watcher(sandbox: Arc<Mutex<Sandbox>>, uev: Uevent) {
if matcher.is_match(&uev) {
let (_, sender) = watch.take().unwrap();
let _ = sender.send(uev.clone());
return;
}
}
});