chore: clippy
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user