diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2021-04-17 23:17:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 23:17:19 +0200 |
commit | f0a367c3f59fd0316aac83792714b3e9938295ad (patch) | |
tree | 4fb0ad39c28806624705ad8af8c4b2737a6b89a0 /src/tabs | |
parent | 53b2c798779dde738502ccf0a4aa2022da9ec22f (diff) |
more linting (#647)
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/stashing.rs | 2 | ||||
-rw-r--r-- | src/tabs/status.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tabs/stashing.rs b/src/tabs/stashing.rs index a4d26947..e0098a01 100644 --- a/src/tabs/stashing.rs +++ b/src/tabs/stashing.rs @@ -73,7 +73,7 @@ impl Stashing { /// pub fn update(&mut self) -> Result<()> { if self.visible { - self.git_status.fetch(StatusParams::new( + self.git_status.fetch(&StatusParams::new( StatusType::Both, self.options.stash_untracked, ))?; diff --git a/src/tabs/status.rs b/src/tabs/status.rs index bc3477a3..3836daef 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -304,12 +304,12 @@ impl Status { if self.is_visible() { self.git_diff.refresh()?; - self.git_status_workdir.fetch(StatusParams::new( + self.git_status_workdir.fetch(&StatusParams::new( StatusType::WorkingDir, true, ))?; self.git_status_stage - .fetch(StatusParams::new(StatusType::Stage, true))?; + .fetch(&StatusParams::new(StatusType::Stage, true))?; self.branch_compare(); } |