Skip to content

Commit 36bbef2

Browse files
committed
Fix Lint Warning
`cargo +nightly rbmt lint` fails with useless use of `format!`, this patch fixes the culprit and uses `to_string` over the previously used `format!` macro.
1 parent 3b0e7f9 commit 36bbef2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ mod tests {
16711671
#[test]
16721672
fn tr_roundtrip_key() {
16731673
let script = Tr::<String>::from_str("tr()").unwrap().to_string();
1674-
assert_eq!(script, format!("tr()#x4ml3kxd"))
1674+
assert_eq!(script, "tr()#x4ml3kxd".to_string())
16751675
}
16761676

16771677
#[test]

0 commit comments

Comments
 (0)