chore: clippy

This commit is contained in:
2025-05-10 16:34:41 +08:00
parent f86c088e97
commit fa3193ea50
7 changed files with 8 additions and 11 deletions

View File

@@ -342,7 +342,7 @@ impl Downgrade for Expr {
match self {
Expr::Apply(apply) => apply.downgrade(state),
Expr::Assert(assert) => assert.downgrade(state),
Expr::Error(error) => return Err(Error::DowngradeError(error.to_string())),
Expr::Error(error) => Err(Error::DowngradeError(error.to_string())),
Expr::IfElse(ifelse) => ifelse.downgrade(state),
Expr::Select(select) => select.downgrade(state),
Expr::Str(str) => str.downgrade(state),
@@ -391,7 +391,6 @@ impl Downgrade for ast::Path {
fn downgrade(self, state: &mut DowngradeState) -> Result<Ir> {
let parts = self
.parts()
.into_iter()
.map(|part| match part {
ast::InterpolPart::Literal(lit) => Const {
value: lit.to_string().into(),