diff --git a/asyncgit/src/push.rs b/asyncgit/src/push.rs index 593e9c2e..78151396 100644 --- a/asyncgit/src/push.rs +++ b/asyncgit/src/push.rs @@ -162,7 +162,7 @@ impl AsyncPush { let mut last_res = arc_result.lock()?; *last_res = match res { - Ok(_) => None, + Ok(()) => None, Err(e) => { log::error!("push error: {}", e); Some(e.to_string()) diff --git a/asyncgit/src/push_tags.rs b/asyncgit/src/push_tags.rs index 0740def1..3cf9ed92 100644 --- a/asyncgit/src/push_tags.rs +++ b/asyncgit/src/push_tags.rs @@ -145,7 +145,7 @@ impl AsyncPushTags { let mut last_res = arc_result.lock()?; *last_res = match res { - Ok(_) => None, + Ok(()) => None, Err(e) => { log::error!("push error: {}", e); Some(e.to_string()) diff --git a/src/components/rename_branch.rs b/src/components/rename_branch.rs index 6ac5dd4e..a9963091 100644 --- a/src/components/rename_branch.rs +++ b/src/components/rename_branch.rs @@ -134,7 +134,7 @@ impl RenameBranchComponent { ); match res { - Ok(_) => { + Ok(()) => { self.queue.push(InternalEvent::Update( NeedsUpdate::ALL, )); diff --git a/src/main.rs b/src/main.rs index 3a3a7454..2d3db590 100644 --- a/src/main.rs +++ b/src/main.rs @@ -359,7 +359,7 @@ fn select_event( QueueEvent::AsyncEvent(AsyncNotification::App(e)) }), 3 => oper.recv(rx_ticker).map(|_| QueueEvent::Notify), - 4 => oper.recv(rx_notify).map(|_| QueueEvent::Notify), + 4 => oper.recv(rx_notify).map(|()| QueueEvent::Notify), 5 => oper.recv(rx_spinner).map(|_| QueueEvent::SpinnerUpdate), _ => bail!("unknown select source"), }?; diff --git a/src/tabs/stashlist.rs b/src/tabs/stashlist.rs index 151ec87b..c2eb1d86 100644 --- a/src/tabs/stashlist.rs +++ b/src/tabs/stashlist.rs @@ -65,7 +65,7 @@ impl StashList { if let Some(e) = self.list.selected_entry() { match sync::stash_apply(&self.repo.borrow(), e.id, false) { - Ok(_) => { + Ok(()) => { self.queue.push(InternalEvent::TabSwitchStatus); } Err(e) => {