Skip to content

Commit 6c69dcf

Browse files
committed
Fix itertools
1 parent 9ccaf11 commit 6c69dcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

host/cli-lib/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<T: Deref<Target = str> + Display + Eq + Hash + Serialize> JsOutput<'_, T> {
7777
write!(output, "\t\t\t\t'{name}': ")?;
7878

7979
for (position, line) in js.lines().with_position() {
80-
if let Position::Middle | Position::Last = position {
80+
if position.is_middle() || position.is_last() {
8181
if line.is_empty() {
8282
output.write_all(b"\n")?;
8383
} else {
@@ -113,7 +113,7 @@ impl<T: Deref<Target = str> + Display + Eq + Hash + Serialize> JsOutput<'_, T> {
113113
write!(output, "\t\t\t\t'{name}': ")?;
114114

115115
for (position, line) in js.lines().with_position() {
116-
if let Position::Middle | Position::Last = position {
116+
if position.is_middle() || position.is_last() {
117117
if line.is_empty() {
118118
output.write_all(b"\n")?;
119119
} else {

0 commit comments

Comments
 (0)