Skip to content

Commit 0361a25

Browse files
apoelstrapythcoiner
authored andcommitted
clippy: fix some nits introduced by rust-bitcoin#651
1 parent 8e85985 commit 0361a25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/miniscript/astelem.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ fn fmt_1<D: fmt::Debug + fmt::Display>(
139139
a: &D,
140140
is_debug: bool,
141141
) -> fmt::Result {
142-
f.write_str(&name)?;
142+
f.write_str(name)?;
143143
conditional_fmt(f, a, is_debug)?;
144144
f.write_str(")")
145145
}
@@ -150,7 +150,7 @@ fn fmt_2<D: fmt::Debug + fmt::Display>(
150150
b: &D,
151151
is_debug: bool,
152152
) -> fmt::Result {
153-
f.write_str(&name)?;
153+
f.write_str(name)?;
154154
conditional_fmt(f, a, is_debug)?;
155155
f.write_str(",")?;
156156
conditional_fmt(f, b, is_debug)?;
@@ -163,7 +163,7 @@ fn fmt_n<D: fmt::Debug + fmt::Display>(
163163
list: &[D],
164164
is_debug: bool,
165165
) -> fmt::Result {
166-
f.write_str(&name)?;
166+
f.write_str(name)?;
167167
write!(f, "{}", first)?;
168168
for el in list {
169169
f.write_str(",")?;

0 commit comments

Comments
 (0)