From 71e4ab4b216762c130b98172447cf6f72ccff4a1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:11:27 +0000 Subject: [PATCH 1/2] chore(deps): update actions/checkout action to v6 --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 97d1164..e124000 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,7 +12,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Build run: cargo build --verbose - name: Check formatting From f7187c0989a111dc6d35a9e3f0794119e6b68fe0 Mon Sep 17 00:00:00 2001 From: Simon Sawert Date: Sun, 23 Nov 2025 16:43:03 +0100 Subject: [PATCH 2/2] Address `clippy` lints --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d45000f..d3a85e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -247,7 +247,7 @@ impl Personnummer { /// Check if the person holding the personal identity number is a female. pub fn is_female(&self) -> bool { - (self.serial % 10) % 2 == 0 + (self.serial % 10).is_multiple_of(2) } /// Check if the person holding the personal identity number is a male.