From cdaa3af5ae12161e12db438282912f7b027ea277 Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Sat, 7 May 2022 00:34:56 +0100 Subject: [PATCH] clippy: Fix lint against latest nightly Signed-off-by: Dave Tucker --- aya/src/programs/probe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/programs/probe.rs b/aya/src/programs/probe.rs index dab763b1..55d9da93 100644 --- a/aya/src/programs/probe.rs +++ b/aya/src/programs/probe.rs @@ -60,7 +60,7 @@ pub(crate) fn attach>( pub(crate) fn detach_debug_fs(kind: ProbeKind, event_alias: &str) -> Result<(), ProgramError> { use ProbeKind::*; - let _ = match kind { + match kind { KProbe | KRetProbe => delete_probe_event(kind, event_alias) .map_err(|(filename, io_error)| KProbeError::FileError { filename, io_error })?, UProbe | URetProbe => delete_probe_event(kind, event_alias)