fix clippy errors

This commit is contained in:
Omree 2021-06-09 13:16:05 +03:00
parent 3651e6aedf
commit b8e4f4c6fa
2 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,7 @@ impl CmpLogRuntime {
}
}
/// Call the external function that populates the cmplog_map with the relevant values
/// Call the external function that populates the `cmplog_map` with the relevant values
extern "C" fn populate_lists(&mut self, op1: u64, op2: u64, retaddr: u64) {
// println!(
// "entered populate_lists with: {:#02x}, {:#02x}, {:#02x}",

View File

@ -108,9 +108,8 @@ impl FridaOptions {
}
"cmplog" => {
options.enable_cmplog = value.parse().unwrap();
match cfg!(feature = "cmplog") {
false => panic!("cmplog feature is disabled!"),
_ => (),
if !cfg!(feature = "cmplog") && options.enable_cmplog {
panic!("cmplog feature is disabled!")
}
}
_ => {