Skip to content

Commit ffc0178

Browse files
committed
so take a look what you've done / 'cause clippy now we got bad blood
1 parent caef0f7 commit ffc0178

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

phd-tests/framework/src/serial/raw_buffer.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ impl Buffer for RawBuffer {
123123
self.push_character('\n');
124124
}
125125
Action::CSI(CSI::Cursor(Right(n))) => {
126-
self.push_str(
127-
&std::iter::repeat(" ")
128-
.take(n as usize)
129-
.collect::<String>(),
130-
);
126+
self.push_str(&" ".repeat(n as usize));
131127
}
132128
_ => {
133129
trace!(?action, "raw buffer ignored action");

0 commit comments

Comments
 (0)