summaryrefslogtreecommitdiffstats
path: root/src/tabs/stashing.rs
diff options
context:
space:
mode:
authorAlessandro Menezes <alessandroasm@gmail.com>2021-10-09 18:25:43 -0400
committerStephan Dilly <dilly.stephan@gmail.com>2021-10-10 02:57:45 +0200
commit848623305303031c14c770dff93e57bda829f43c (patch)
treea5cad6e1558c340cf84fdbe5c63b25a55b8fa731 /src/tabs/stashing.rs
parentd84120a895bae0831330805f15e602ccded1b5e0 (diff)
Fixing the CI Pipeline
Rust nightly (1.57.0-nightly) was throwing errors when running `cargo clippy`.
Diffstat (limited to 'src/tabs/stashing.rs')
-rw-r--r--src/tabs/stashing.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tabs/stashing.rs b/src/tabs/stashing.rs
index dde72c88..ff05696b 100644
--- a/src/tabs/stashing.rs
+++ b/src/tabs/stashing.rs
@@ -91,11 +91,9 @@ impl Stashing {
&mut self,
ev: AsyncGitNotification,
) -> Result<()> {
- if self.is_visible() {
- if let AsyncGitNotification::Status = ev {
- let status = self.git_status.last()?;
- self.index.update(&status.items)?;
- }
+ if self.is_visible() && ev == AsyncGitNotification::Status {
+ let status = self.git_status.last()?;
+ self.index.update(&status.items)?;
}
Ok(())