Skip to content

Commit 45fd5f7

Browse files
committed
Use push with character literal
Clippy emits: warning: calling `push_str()` using a single-character string literal As suggested, use `push` with character literal.
1 parent ebc4dc9 commit 45fd5f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/miniscript/astelem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,12 @@ where
473473
if name == "pk" {
474474
frag_name = "pk_k";
475475
aliased_wrap = wrap.to_owned();
476-
aliased_wrap.push_str("c");
476+
aliased_wrap.push('c');
477477
frag_wrap = &aliased_wrap;
478478
} else if name == "pkh" {
479479
frag_name = "pk_h";
480480
aliased_wrap = wrap.to_owned();
481-
aliased_wrap.push_str("c");
481+
aliased_wrap.push('c');
482482
frag_wrap = &aliased_wrap;
483483
} else {
484484
frag_name = name;

0 commit comments

Comments
 (0)