summaryrefslogtreecommitdiffstats
path: root/src/tabs/stashing.rs
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-06-07 23:04:07 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2021-06-07 23:04:07 +0200
commit8032c3590253587ea532d93f13510ff040564b58 (patch)
treed5e8d5640d385d779beb5bab52993c9d67335d69 /src/tabs/stashing.rs
parent7058ab14d3ad1b8f3fffe2bc2a52729127eb1bef (diff)
refactor better name
Diffstat (limited to 'src/tabs/stashing.rs')
-rw-r--r--src/tabs/stashing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tabs/stashing.rs b/src/tabs/stashing.rs
index 2479b8bc..9cd1bde0 100644
--- a/src/tabs/stashing.rs
+++ b/src/tabs/stashing.rs
@@ -13,7 +13,7 @@ use crate::{
use anyhow::Result;
use asyncgit::{
sync::{self, status::StatusType},
- AsyncNotification, AsyncStatus, StatusParams, CWD,
+ AsyncGitNotification, AsyncStatus, StatusParams, CWD,
};
use crossbeam_channel::Sender;
use crossterm::event::Event;
@@ -45,7 +45,7 @@ impl Stashing {
///
pub fn new(
- sender: &Sender<AsyncNotification>,
+ sender: &Sender<AsyncGitNotification>,
queue: &Queue,
theme: SharedTheme,
key_config: SharedKeyConfig,
@@ -88,10 +88,10 @@ impl Stashing {
///
pub fn update_git(
&mut self,
- ev: AsyncNotification,
+ ev: AsyncGitNotification,
) -> Result<()> {
if self.is_visible() {
- if let AsyncNotification::Status = ev {
+ if let AsyncGitNotification::Status = ev {
let status = self.git_status.last()?;
self.index.update(&status.items)?;
}