From 022dc3325128581157f48883ea27c4c13b19a1e0 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Thu, 10 Jun 2021 22:07:18 +0200 Subject: [PATCH] clippy --- libafl_frida/src/cmplog_rt.rs | 1 + libafl_frida/src/helper.rs | 2 +- libafl_frida/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libafl_frida/src/cmplog_rt.rs b/libafl_frida/src/cmplog_rt.rs index ab93bb67b1..cacf6ac7ae 100644 --- a/libafl_frida/src/cmplog_rt.rs +++ b/libafl_frida/src/cmplog_rt.rs @@ -20,6 +20,7 @@ impl CmpLogRuntime { } /// Call the external function that populates the `cmplog_map` with the relevant values + #[allow(clippy::unused_self)] extern "C" fn populate_lists(&mut self, op1: u64, op2: u64, retaddr: u64) { // println!( // "entered populate_lists with: {:#02x}, {:#02x}, {:#02x}", diff --git a/libafl_frida/src/helper.rs b/libafl_frida/src/helper.rs index adc5b1938b..dec6aafb7b 100644 --- a/libafl_frida/src/helper.rs +++ b/libafl_frida/src/helper.rs @@ -38,7 +38,7 @@ use crate::{asan_rt::AsanRuntime, FridaOptions}; #[cfg(feature = "cmplog")] use crate::cmplog_rt::CmpLogRuntime; -#[cfg(feature = "cmplog")] +#[cfg(all(feature = "cmplog", target_arch = "aarch64"))] enum CmplogOperandType { Regid(capstone::RegId), Imm(u64), diff --git a/libafl_frida/src/lib.rs b/libafl_frida/src/lib.rs index 7ae5ba6962..a522e96032 100644 --- a/libafl_frida/src/lib.rs +++ b/libafl_frida/src/lib.rs @@ -44,6 +44,7 @@ impl FridaOptions { /// # Panics /// Panics, if no `=` sign exists in input, or or `value` behind `=` has zero length. #[must_use] + #[allow(clippy::too_many_lines)] pub fn parse_env_options() -> Self { let mut options = Self::default(); let mut asan_cores = None;