Skip to content

Commit

Permalink
main: address a clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
decathorpe committed Jan 24, 2024
1 parent 8187497 commit 61296c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async fn get_store_password(clear: bool) -> Result<String, String> {
return Ok(password);
};

let password = match items.get(0) {
let password = match items.first() {
Some(item) => match item.get_secret().await {
Ok(secret) => match String::from_utf8(secret) {
Ok(valid) => valid,
Expand Down

0 comments on commit 61296c7

Please sign in to comment.