mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
fix nightly clippy
This commit is contained in:
parent
798f990cd3
commit
8437b76f99
5 changed files with 5 additions and 5 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ impl RenameBranchComponent {
|
|||
);
|
||||
|
||||
match res {
|
||||
Ok(_) => {
|
||||
Ok(()) => {
|
||||
self.queue.push(InternalEvent::Update(
|
||||
NeedsUpdate::ALL,
|
||||
));
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
}?;
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue