Skip to content

Commit 383e08a

Browse files
committed
fix: clippy single_range_in_vec_init in fold layout test (CI -D warnings)
1 parent b916d2e commit 383e08a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/doc_layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ mod tests {
23652365
)
23662366
};
23672367
let full = build(&mut engine, &[]);
2368-
let folded = build(&mut engine, &[1..3]); // hide lines 1 and 2
2368+
let folded = build(&mut engine, std::slice::from_ref(&(1..3))); // hide lines 1 and 2
23692369

23702370
// Lines 1 and 2 collapse: their tops tie, and content height drops by exactly
23712371
// the height those two lines occupied in the unfolded layout.

0 commit comments

Comments
 (0)