Fix minor warnings

jmap-eventsource
Manos Pitsidianakis 2020-10-15 19:01:42 +03:00
parent 03a1d5a985
commit 4c1a9b2485
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 2 additions and 2 deletions

View File

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

View File

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