Skip to content

Commit b126015

Browse files
author
Stephan Dilly
committed
clippy fixes
1 parent b21b83b commit b126015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tabs/status.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl Status {
215215
}
216216
}
217217

218-
fn repo_state_text(state: RepoState) -> String {
218+
fn repo_state_text(state: &RepoState) -> String {
219219
match state {
220220
RepoState::Merge => {
221221
let ids =
@@ -252,7 +252,7 @@ impl Status {
252252
) -> Result<()> {
253253
if let Ok(state) = sync::repo_state(CWD) {
254254
if state != RepoState::Clean {
255-
let txt = Self::repo_state_text(state);
255+
let txt = Self::repo_state_text(&state);
256256

257257
let txt_len = u16::try_from(txt.len())?;
258258
let w = Paragraph::new(txt)

0 commit comments

Comments
 (0)