Skip to content

Commit

Permalink
Run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasdenH committed Oct 28, 2024
1 parent d0ef1c4 commit 424951a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iban_validate_registry_generation/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![doc = include_str!("../README.md")]

use std::{fmt::Write, ops::Deref};
use std::fmt::Write;

use csv::{ReaderBuilder, StringRecord, Trim};

Expand Down Expand Up @@ -146,7 +146,7 @@ fn generate_bank_identifier_position_in_bban_match_arm(
// Remove formatting like spaces and dashes
.filter(|c| c.is_ascii_alphanumeric())
.collect();
if matches!(record.country_code.deref(), "MK" | "SE" | "ST") {
if matches!(record.country_code, "MK" | "SE" | "ST") {
assert_eq!(bank_identifier_example.len(), bank_identifier_length);
} else {
// Sometimes the BBAN is just different so we should use the BBAN and not the IBAN. Sometimes the BBAN removes leading zeros or
Expand Down

0 comments on commit 424951a

Please sign in to comment.