chore: clippy autofix

This commit is contained in:
rvcas
2023-02-01 13:08:54 -05:00
committed by Lucas
parent 4530507109
commit a365649360
24 changed files with 104 additions and 110 deletions

View File

@@ -46,8 +46,8 @@ mod tests {
) {
let code = format!(r"(program
11.22.33
(con integer {})
)", int);
(con integer {int})
)");
let expected = parser::program(&code).unwrap();
let actual = Builder::start(11, 22, 33).with_int(int).build_named();
assert_eq!(expected, actual);
@@ -62,8 +62,8 @@ mod tests {
let bstring = hex::encode(&bytes);
let code = format!(r"(program
11.22.33
(con bytestring #{})
)", bstring);
(con bytestring #{bstring})
)");
let expected = parser::program(&code).unwrap();
let actual = Builder::start(11, 22, 33)
.with_byte_string(bytes)

View File

@@ -23,9 +23,9 @@ proptest! {
(maj, min, patch) in arb_version(),
) {
let code = format!(r"(program
{}.{}.{}
{maj}.{min}.{patch}
(con integer 11)
)", maj, min, patch);
)");
let expected = parser::program(&code).unwrap();
let actual = Builder::start(maj, min, patch).with_int(11).build_named();
assert_eq!(expected, actual);