Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetVishnya committed Feb 16, 2024
1 parent fb26846 commit 45c8b3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions casr/src/triage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a> CrashInfo {
pub fn fuzzing_crash_triage_pipeline(
matches: &clap::ArgMatches,
crashes: &HashMap<String, CrashInfo>,
gdb_args: &Vec<String>,
gdb_args: &[String],
) -> Result<()> {
// Get casr-cluster path
let casr_cluster = get_path("casr-cluster")?;
Expand Down Expand Up @@ -281,7 +281,7 @@ pub fn fuzzing_crash_triage_pipeline(
fn summarize_results(
matches: &clap::ArgMatches,
crashes: &HashMap<String, CrashInfo>,
gdb_args: &Vec<String>,
gdb_args: &[String],
) -> Result<()> {
// Get output dir
let dir = matches.get_one::<PathBuf>("output").unwrap();
Expand Down Expand Up @@ -334,7 +334,7 @@ fn summarize_results(
crashes.par_iter().try_for_each(|crash| {
if let Err(e) = (CrashInfo {
path: crash.to_path_buf(),
target_args: gdb_args.clone(),
target_args: gdb_args.to_vec(),
envs: HashMap::new(),
at_index,
casr_tool: casr_gdb.clone(),
Expand Down
2 changes: 1 addition & 1 deletion casr/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ pub fn get_reports(dir: &Path) -> Result<Vec<PathBuf>> {
///
/// * A vector of correctly parsed report info: paths, stacktraces and crashlines
/// * A vector of bad reports
pub fn reports_from_paths(casreps: &Vec<PathBuf>, jobs: usize) -> (Vec<ReportInfo>, Vec<PathBuf>) {
pub fn reports_from_paths(casreps: &[PathBuf], jobs: usize) -> (Vec<ReportInfo>, Vec<PathBuf>) {
// Get len
let len = casreps.len();
// Start thread pool.
Expand Down

0 comments on commit 45c8b3f

Please sign in to comment.