fix clippy::needless_return

This commit is contained in:
Matthias Krüger 2022-03-12 14:56:26 +01:00
parent 21ffc5350d
commit 77790f2b8e
6 changed files with 14 additions and 17 deletions

View file

@ -235,7 +235,7 @@ pub fn eval_const(expr: &Expr, ctx: &mut ConstEvalCtx<'_>) -> Result<ComputedExp
Ok(ComputedExpr::Literal(Literal::Int(r, None)))
}
BinaryOp::LogicOp(_) => Err(ConstEvalError::TypeError),
_ => return Err(ConstEvalError::NotSupported("bin op on this operators")),
_ => Err(ConstEvalError::NotSupported("bin op on this operators")),
}
}
Expr::Block { statements, tail, .. } => {