Skip to content

Commit 4d7058b

Browse files
committed
remove unnecessary mut ref
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent b135d71 commit 4d7058b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dist/component/package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,15 @@ fn unpack_without_first_dir<'a, R: Read>(
349349
/// has been fully dispatched.
350350
fn flush_ios<'a, R: std::io::Read, P: AsRef<Path>>(
351351
io_executor: &mut dyn Executor,
352-
mut directories: &mut HashMap<PathBuf, DirStatus>,
352+
directories: &mut HashMap<PathBuf, DirStatus>,
353353
mut sender_entry: Option<&mut SenderEntry<'a, '_, R>>,
354354
full_path: P,
355355
) -> Result<bool> {
356356
let mut result = sender_entry.is_none();
357357
for mut op in io_executor.completed().collect::<Vec<_>>() {
358358
// TODO capture metrics
359359
filter_result(&mut op)?;
360-
trigger_children(&*io_executor, &mut directories, op)?;
360+
trigger_children(&*io_executor, directories, op)?;
361361
}
362362
// Maybe stream a file incrementally
363363
if let Some(sender) = sender_entry.as_mut() {

0 commit comments

Comments
 (0)