uevent: Fix clippy warning

unneeded `return` statement

Signed-off-by: Arron Wang <arron.wang@intel.com>
This commit is contained in:
Arron Wang 2021-11-27 04:26:16 +08:00 committed by Samuel Ortiz
parent 77ba9dcdbb
commit 3454785c9b

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;
}
}
});