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

@ -502,7 +502,7 @@ where
};
format!(
"{query}{}",
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
Self::Sum { field, alias } => {
@ -522,7 +522,7 @@ where
};
format!(
"{query}{}",
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
Self::Min { field, alias } => {
@ -531,7 +531,7 @@ where
field
.to_sql(table_engine)
.attach_printable("Failed to min aggregate")?,
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
Self::Max { field, alias } => {
@ -540,7 +540,7 @@ where
field
.to_sql(table_engine)
.attach_printable("Failed to max aggregate")?,
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
Self::Percentile {
@ -554,7 +554,7 @@ where
field
.to_sql(table_engine)
.attach_printable("Failed to percentile aggregate")?,
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
Self::DistinctCount { field, alias } => {
@ -563,7 +563,7 @@ where
field
.to_sql(table_engine)
.attach_printable("Failed to percentile aggregate")?,
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
})
@ -599,7 +599,7 @@ where
order
)
),
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
Self::RowNumber {
@ -622,7 +622,7 @@ where
order
)
),
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {}", alias))
alias.map_or_else(|| "".to_owned(), |alias| format!(" as {alias}"))
)
}
})