Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKl committed Jan 13, 2025
1 parent 630fffd commit c8a770e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/importer/saltxml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl From<&str> for SaltObject {
} else if let Some(value) = value.strip_prefix("U::") {
SaltObject::Url(value.to_string())
} else if let Some(value) = value.strip_prefix("B::") {
let value = value.to_ascii_lowercase() == "true";
let value = value.eq_ignore_ascii_case("true");
SaltObject::Boolean(value)
} else if let Some(value) = value.strip_prefix("N::") {
let value = value.parse::<i64>().unwrap_or_default();
Expand Down

0 comments on commit c8a770e

Please sign in to comment.