fix: Fix broken build (#453)

The clone optimization PR didn't have the latest changes for "azure_policy".
Integration resulted in compile errors.

Also fix errors due to updated clippy lints.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-08-07 12:52:09 -05:00
committed by GitHub
parent dbba57f499
commit de6aa2bcd1
5 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -267,7 +267,7 @@ struct GoTimeFormatItems<'a> {
}
impl GoTimeFormatItems<'_> {
fn parse(reminder: &str) -> GoTimeFormatItems {
fn parse(reminder: &str) -> GoTimeFormatItems<'_> {
GoTimeFormatItems {
reminder,
queue: &[],
@@ -275,7 +275,7 @@ impl GoTimeFormatItems<'_> {
}
}
fn format(reminder: &str) -> GoTimeFormatItems {
fn format(reminder: &str) -> GoTimeFormatItems<'_> {
GoTimeFormatItems {
reminder,
queue: &[],
+1 -1
View File
@@ -108,7 +108,7 @@ fn parse(span: &Span, params: &[Ref<Expr>], args: &[Value], _strict: bool) -> Re
n.mul_assign(&Number::two_pow(e)?)?;
Ok(Value::from(n))
} else {
return Ok(Value::Undefined);
Ok(Value::Undefined)
}
}