From 534627a04c77aa6791be25ad04deefa9b37034f5 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 3 Aug 2025 16:59:02 -0400 Subject: [Rust] Take download callbacks by reference to avoid boxing --- plugins/dwarf/dwarf_import/src/helpers.rs | 2 +- plugins/pdb-ng/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/dwarf/dwarf_import/src/helpers.rs b/plugins/dwarf/dwarf_import/src/helpers.rs index f2f67170..fdf4e038 100644 --- a/plugins/dwarf/dwarf_import/src/helpers.rs +++ b/plugins/dwarf/dwarf_import/src/helpers.rs @@ -452,7 +452,7 @@ pub(crate) fn download_debug_info( "GET", &artifact_url, vec![], - DownloadInstanceInputOutputCallbacks { + &DownloadInstanceInputOutputCallbacks { read: None, write: Some(Box::new(write)), progress: None, diff --git a/plugins/pdb-ng/src/lib.rs b/plugins/pdb-ng/src/lib.rs index 63efd56c..cad1ada0 100644 --- a/plugins/pdb-ng/src/lib.rs +++ b/plugins/pdb-ng/src/lib.rs @@ -195,7 +195,7 @@ fn read_from_sym_store(bv: &BinaryView, path: &str) -> Result<(bool, Vec)> { "GET", path, vec![], - DownloadInstanceInputOutputCallbacks { + &DownloadInstanceInputOutputCallbacks { read: None, write: Some(Box::new(write)), progress: None, -- cgit v1.3.1