Skip to content

Commit

Permalink
refactor: remove pointless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
tofuuudon committed Oct 21, 2024
1 parent b648b83 commit 4b6c3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn write_gh_auth_token(entry: Entry) -> keyring::Result<String> {
let mut buffer = String::new();
io::stdin().read_line(&mut buffer).unwrap();

entry.set_password(&buffer.trim())?;
entry.set_password(buffer.trim())?;
Ok(entry.get_password()?)

Check warning

Code scanning / clippy

question mark operator is useless here Warning

question mark operator is useless here
}

Expand Down

0 comments on commit 4b6c3d1

Please sign in to comment.