use auto-deref for Arcs

This commit is contained in:
132nd-Professor
2022-11-07 16:58:08 +01:00
parent e51e57505e
commit 61cfbd3e13
+3 -3
View File
@@ -145,15 +145,15 @@ impl OutputData {
let i = self.input_filename.clone(); let i = self.input_filename.clone();
thread::spawn(move || { 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}")) .with_context(|| format!("could not create writer for {c}"))
.unwrap(); .unwrap();
writer writer
.write_strings(&*h) .write_strings(&h)
.with_context(|| format!("could not write header for {c}")) .with_context(|| format!("could not write header for {c}"))
.unwrap(); .unwrap();
writer writer
.write_for_coalition(&*b, &*cpl, &c) .write_for_coalition(&b, &cpl, &c)
.with_context(|| format!("could not write body for {c}")) .with_context(|| format!("could not write body for {c}"))
.unwrap(); .unwrap();
}) })