lint/fmt fixes

This commit is contained in:
Ben 2025-04-25 15:36:33 +08:00
parent 57ade6fcd6
commit 9ebb5c3385

View File

@ -31,8 +31,7 @@ impl Command for FormatPattern {
fn description(&self) -> &str { fn description(&self) -> &str {
r"Format values into a string using either a simple pattern or `printf`-compatible pattern. r"Format values into a string using either a simple pattern or `printf`-compatible pattern.
Simple pattern supports input of type list<any>, table, and record; Simple pattern supports input of type list<any>, table, and record;
`printf` pattern supports input types that are coercible to string, namely bool, int, float, string, glob, binary and date, and also list of a mix of those types. `printf` pattern supports input types that are coercible to string, namely bool, int, float, string, glob, binary and date, and also list of a mix of those types."
"
} }
fn run( fn run(
@ -289,9 +288,8 @@ fn assert_specifier_count_eq_arg_count(
msg: format!( msg: format!(
"Number of arguments ({}) provided does not match the number of specifiers ({}) given in the pattern.", "Number of arguments ({}) provided does not match the number of specifiers ({}) given in the pattern.",
arg_count, spec_count, arg_count, spec_count,
) ),
.into(), span,
span: span,
}) })
} else { } else {
Ok(()) Ok(())