Remove unnecessary deref coercion

This commit is contained in:
Liam 2024-12-01 18:03:34 -05:00
parent 87e0c814af
commit 4d9edf6364

View file

@ -25,7 +25,7 @@ fn with_writer<F, T>(writer: WriterResourceArc, f: F) -> Atom
where
F: FnOnce(&mut Option<ZipWriter<File>>) -> Option<T>,
{
let mut guard = match (*writer).inner.lock() {
let mut guard = match writer.inner.lock() {
Ok(g) => g,
Err(_) => return atoms::error(),
};