mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
Remove unnecessary deref coercion
This commit is contained in:
parent
87e0c814af
commit
4d9edf6364
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ fn with_writer<F, T>(writer: WriterResourceArc, f: F) -> Atom
|
||||||
where
|
where
|
||||||
F: FnOnce(&mut Option<ZipWriter<File>>) -> Option<T>,
|
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,
|
Ok(g) => g,
|
||||||
Err(_) => return atoms::error(),
|
Err(_) => return atoms::error(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue