From 61cfbd3e1389cacd493be810dc6757c93cfa4816 Mon Sep 17 00:00:00 2001 From: 132nd-Professor <132nd-Professor> Date: Mon, 7 Nov 2022 16:58:08 +0100 Subject: [PATCH] use auto-deref for Arcs --- src/writer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/writer.rs b/src/writer.rs index 9426977..fe7dd54 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -145,15 +145,15 @@ impl OutputData { let i = self.input_filename.clone(); thread::spawn(move || { - let mut writer = create_writer(z, &*i.clone(), &c) + let mut writer = create_writer(z, &i.clone(), &c) .with_context(|| format!("could not create writer for {c}")) .unwrap(); writer - .write_strings(&*h) + .write_strings(&h) .with_context(|| format!("could not write header for {c}")) .unwrap(); writer - .write_for_coalition(&*b, &*cpl, &c) + .write_for_coalition(&b, &cpl, &c) .with_context(|| format!("could not write body for {c}")) .unwrap(); })