Fix minor warnings

pull/144/head
Manos Pitsidianakis 4 years ago
parent 03a1d5a985
commit 4c1a9b2485
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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);

@ -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