chore: clippy autofix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user