Skip to content

Commit faa7484

Browse files
chore(deps): update actions/checkout action to v6 (#23)
* chore(deps): update actions/checkout action to v6 * Address `clippy` lints --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Simon Sawert <simon@sawert.se>
1 parent c0ea218 commit faa7484

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
- name: Build
1717
run: cargo build --verbose
1818
- name: Check formatting

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl Personnummer {
247247

248248
/// Check if the person holding the personal identity number is a female.
249249
pub fn is_female(&self) -> bool {
250-
(self.serial % 10) % 2 == 0
250+
(self.serial % 10).is_multiple_of(2)
251251
}
252252

253253
/// Check if the person holding the personal identity number is a male.

0 commit comments

Comments
 (0)