From 4c1a9b2485724c8adde5d28e49765fd8e1f29677 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Thu, 15 Oct 2020 19:01:42 +0300 Subject: [PATCH] Fix minor warnings --- melib/src/gpgme/io.rs | 2 +- src/components/mail/compose/edit_attachments.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/melib/src/gpgme/io.rs b/melib/src/gpgme/io.rs index 5d67ddde..636e37cb 100644 --- a/melib/src/gpgme/io.rs +++ b/melib/src/gpgme/io.rs @@ -82,7 +82,7 @@ pub unsafe extern "C" fn gpgme_event_io_cb( if type_ == gpgme_event_io_t_GPGME_EVENT_DONE { let err = type_data as gpgme_io_event_done_data_t; let io_state: Arc> = Arc::from_raw(data as *const _); - let mut io_state_lck = io_state.lock().unwrap(); + let io_state_lck = io_state.lock().unwrap(); io_state_lck.sender.try_send(()).unwrap(); *io_state_lck.done.lock().unwrap() = Some(gpgme_error_try(&io_state_lck.lib, (*err).err)); drop(io_state_lck); diff --git a/src/components/mail/compose/edit_attachments.rs b/src/components/mail/compose/edit_attachments.rs index 159cfb25..0a140bf2 100644 --- a/src/components/mail/compose/edit_attachments.rs +++ b/src/components/mail/compose/edit_attachments.rs @@ -298,7 +298,7 @@ impl Component for EditAttachmentsRefMut<'_, '_> { fn kill(&mut self, _uuid: Uuid, _context: &mut Context) {} - fn get_shortcuts(&self, context: &Context) -> ShortcutMaps { + fn get_shortcuts(&self, _context: &Context) -> ShortcutMaps { ShortcutMaps::default() }