diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2021-06-07 23:04:07 +0200 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2021-06-07 23:04:07 +0200 |
commit | 8032c3590253587ea532d93f13510ff040564b58 (patch) | |
tree | d5e8d5640d385d779beb5bab52993c9d67335d69 /src/main.rs | |
parent | 7058ab14d3ad1b8f3fffe2bc2a52729127eb1bef (diff) |
refactor better name
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 68efee4a..9c4fae7c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ mod version; use crate::{app::App, args::process_cmdline}; use anyhow::{bail, Result}; -use asyncgit::AsyncNotification; +use asyncgit::AsyncGitNotification; use backtrace::Backtrace; use crossbeam_channel::{tick, unbounded, Receiver, Select}; use crossterm::{ @@ -72,7 +72,7 @@ static SPINNER_INTERVAL: Duration = Duration::from_millis(80); pub enum QueueEvent { Tick, SpinnerUpdate, - GitEvent(AsyncNotification), + GitEvent(AsyncGitNotification), InputEvent(InputEvent), } @@ -148,7 +148,8 @@ fn main() -> Result<()> { } QueueEvent::Tick => app.update()?, QueueEvent::GitEvent(ev) - if ev != AsyncNotification::FinishUnchanged => + if ev + != AsyncGitNotification::FinishUnchanged => { app.update_git(ev)?; } @@ -215,7 +216,7 @@ fn valid_path() -> Result<bool> { fn select_event( rx_input: &Receiver<InputEvent>, - rx_git: &Receiver<AsyncNotification>, + rx_git: &Receiver<AsyncGitNotification>, rx_ticker: &Receiver<Instant>, rx_spinner: &Receiver<Instant>, ) -> Result<QueueEvent> { |