Skip to content

Commit

Permalink
Merge pull request #23 from triarius/cargo-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius authored Jul 23, 2023
2 parents 15b9193 + 2650735 commit 79b0b61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: [push, pull_request]
name: Clippy
name: CI
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -9,6 +9,14 @@ jobs:
with:
toolchain: stable
- run: cargo build --verbose
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo fmt --verbose --all --check
test:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn passphrase(
});

(0..num_words)
.map(|i| (words[i].to_owned()))
.map(|i| words[i].to_owned())
.collect::<Vec<String>>()
.join(separator)
}

0 comments on commit 79b0b61

Please sign in to comment.