chore: address Rust 1.88.0 clippy lints (#8498)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2025-07-02 12:13:07 +05:30
committed by GitHub
parent ad29631c53
commit 20b52f11c3
150 changed files with 464 additions and 647 deletions

View File

@ -187,10 +187,10 @@ impl Serialize for ElementSize {
match self {
Self::Variants(variant) => serializer.serialize_str(variant.to_string().as_str()),
Self::Pixels(pixel_count) => {
serializer.serialize_str(format!("{}px", pixel_count).as_str())
serializer.serialize_str(format!("{pixel_count}px").as_str())
}
Self::Percentage(pixel_count) => {
serializer.serialize_str(format!("{}%", pixel_count).as_str())
serializer.serialize_str(format!("{pixel_count}%").as_str())
}
}
}