Browse Source

Fix minor warnings

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
4c1a9b2485
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      melib/src/gpgme/io.rs
  2. 2
      src/components/mail/compose/edit_attachments.rs

2
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<Mutex<IoState>> = 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);

2
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()
}

Loading…
Cancel
Save