clippy: Fix lint against latest nightly

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/254/head
Dave Tucker 3 years ago
parent 4afc5ea711
commit cdaa3af5ae

@ -60,7 +60,7 @@ pub(crate) fn attach<T: Link + From<PerfLink>>(
pub(crate) fn detach_debug_fs(kind: ProbeKind, event_alias: &str) -> Result<(), ProgramError> { pub(crate) fn detach_debug_fs(kind: ProbeKind, event_alias: &str) -> Result<(), ProgramError> {
use ProbeKind::*; use ProbeKind::*;
let _ = match kind { match kind {
KProbe | KRetProbe => delete_probe_event(kind, event_alias) KProbe | KRetProbe => delete_probe_event(kind, event_alias)
.map_err(|(filename, io_error)| KProbeError::FileError { filename, io_error })?, .map_err(|(filename, io_error)| KProbeError::FileError { filename, io_error })?,
UProbe | URetProbe => delete_probe_event(kind, event_alias) UProbe | URetProbe => delete_probe_event(kind, event_alias)

Loading…
Cancel
Save