fix nightly clippy

This commit is contained in:
extrawurst 2023-08-12 18:50:19 +02:00
parent 798f990cd3
commit 8437b76f99
5 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

@ -134,7 +134,7 @@ impl RenameBranchComponent {
);
match res {
Ok(_) => {
Ok(()) => {
self.queue.push(InternalEvent::Update(
NeedsUpdate::ALL,
));

View file

@ -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"),
}?;

View file

@ -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) => {