diff options
author | Alessandro Menezes <alessandroasm@gmail.com> | 2021-10-09 18:25:43 -0400 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2021-10-10 02:57:45 +0200 |
commit | 848623305303031c14c770dff93e57bda829f43c (patch) | |
tree | a5cad6e1558c340cf84fdbe5c63b25a55b8fa731 /src/tabs/stashing.rs | |
parent | d84120a895bae0831330805f15e602ccded1b5e0 (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.rs | 8 |
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(()) |