Merge pull request #254 from dave-tucker/clippy

clippy: Fix lint against latest nightly
pull/255/head
Alessandro Decina 3 years ago committed by GitHub
commit e71e07f88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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