diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-11 14:25:15 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-11 14:31:53 -0500 |
| commit | 1e4058972548e54fe5d3f666a7e002c243482516 (patch) | |
| tree | 4459b5c8fdd33f34be6057f5048c2305ef8ff01a /plugins | |
| parent | f9913d98eb6ebd5a9d8980e3df4f3933964bfea0 (diff) | |
WARP: Misc formatting
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/warp/src/convert.rs | 2 | ||||
| -rw-r--r-- | plugins/warp/src/matcher.rs | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/plugins/warp/src/convert.rs b/plugins/warp/src/convert.rs index 57b23604..c425bdfe 100644 --- a/plugins/warp/src/convert.rs +++ b/plugins/warp/src/convert.rs @@ -1,7 +1,7 @@ use std::collections::HashSet; -use binaryninja::architecture::Architecture as BNArchitecture; use binaryninja::architecture::ArchitectureExt; +use binaryninja::architecture::Architecture as BNArchitecture; use binaryninja::binaryview::{BinaryView, BinaryViewExt}; use binaryninja::callingconvention::CallingConvention as BNCallingConvention; use binaryninja::rc::Ref as BNRef; diff --git a/plugins/warp/src/matcher.rs b/plugins/warp/src/matcher.rs index 7df38b66..2d4ae753 100644 --- a/plugins/warp/src/matcher.rs +++ b/plugins/warp/src/matcher.rs @@ -18,7 +18,10 @@ use warp::r#type::Type; use warp::signature::function::{Function, FunctionGUID}; use warp::signature::Data; -use crate::cache::{cached_adjacency_constraints, cached_call_site_constraints, cached_function_match, try_cached_function_guid}; +use crate::cache::{ + cached_adjacency_constraints, cached_call_site_constraints, cached_function_match, + try_cached_function_guid, +}; use crate::convert::to_bn_type; use crate::plugin::on_matched_function; @@ -288,7 +291,7 @@ impl Matcher { .into_iter() .filter_map(|c| c.symbol.map(|s| s.name)) .collect(); - + // Ordered from the lowest confidence to the highest confidence constraint. let checked_constraints = [ find_highest_common_count(&adjacent_symbol_names, matched_functions, |matched| { @@ -383,8 +386,8 @@ impl MatcherSettings { /// Populates the [MatcherSettings] to the current Binary Ninja settings instance. /// /// Call this once when you initialize so that the settings exist. - /// - /// NOTE: If you are using this as a library then just modify the MatcherSettings directly + /// + /// NOTE: If you are using this as a library then just modify the MatcherSettings directly /// in the matcher instance, that way you don't need to round-trip through Binary Ninja. pub fn register() { let bn_settings = binaryninja::settings::Settings::new(""); |
