Commit f0f6128
authored
chore: update
# Which issue does this PR close?
N/A
# Rationale for this change
Use the dedicated faster function for creating offset with the same
length
# What changes are included in this PR?
replace
```rust
OffsetBuffer::from_lengths(std::iter::repeat_n(<val>, <repeat>));
```
with
```rust
OffsetBuffer::from_repeated_length(<val>, <repeat>);
```
# Are these changes tested?
Existing tests
# Are there any user-facing changes?
Nope
----
Related to:
- #8656OffsetBuffer::from_lengths(std::iter::repeat_n(<val>, <repeat>)); with OffsetBuffer::from_repeated_length(<val>, <repeat>); (#8669)1 parent c74cbf2 commit f0f6128
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2381 | 2381 | | |
2382 | 2382 | | |
2383 | 2383 | | |
2384 | | - | |
| 2384 | + | |
2385 | 2385 | | |
2386 | 2386 | | |
2387 | 2387 | | |
| |||
0 commit comments