Skip to content

Commit 88bedf0

Browse files
committed
Revert "Remove footgun function"
This reverts commit de01f92.
1 parent 32483d3 commit 88bedf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

consensus/types/src/runtime_var_list.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ impl<T> RuntimeVariableList<T> {
118118
}
119119
}
120120

121+
pub fn set_max_len(&mut self, max_len: usize) {
122+
self.max_len = Some(max_len);
123+
}
124+
121125
/// Returns the number of values presently in `self`.
122126
pub fn len(&self) -> usize {
123127
self.vec.len()

0 commit comments

Comments
 (0)