fix: Clippy warnings (#424)

Also schedule works to be run at 8:00 AM everyday.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-07-02 20:04:27 -05:00
committed by GitHub
parent 444b2970a1
commit 8ee1cf3298
20 changed files with 75 additions and 37 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ fn yaml_marshal(span: &Span, params: &[Ref<Expr>], args: &[Value], _strict: bool
ensure_args_count(span, name, params, args, 1)?;
let serialized = serde_yaml::to_string(&args[0])
.map_err(|err| span.error(&format!("could not serialize to yaml: {}", err)))?;
.map_err(|err| span.error(&format!("could not serialize to yaml: {err}")))?;
Ok(Value::String(serialized.into()))
}
+1 -1
View File
@@ -34,7 +34,7 @@ pub fn arithmetic_operation(
v2: Value,
strict: bool,
) -> Result<Value> {
let op_name = format!("{:?}", op).to_lowercase();
let op_name = format!("{op:?}").to_lowercase();
let v1 = ensure_numeric(op_name.as_str(), expr1, &v1)?;
let v2 = ensure_numeric(op_name.as_str(), expr2, &v2)?;
+1 -1
View File
@@ -440,7 +440,7 @@ fn json_match_schema(
// The following is expected to succeed.
let document: serde_json::Value = serde_json::from_str(&args[0].to_json_str()?)
.map_err(|err| span.error(&format!("Failed to parse JSON: {}", err)))?;
.map_err(|err| span.error(&format!("Failed to parse JSON: {err}")))?;
Ok(Value::from_array(
match compile_json_schema(&params[1], &args[1]) {