Skip to content

Commit fb02a05

Browse files
committed
refactor: Make test-helper function pop_encodable public
Can be used downstream for easier writing of tests of `BasicSnippet` implementations.
1 parent dc92826 commit fb02a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasm-lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn push_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>, value: &T)
111111
/// - the stack does not contain enough elements
112112
/// - the top of the stack does not correspond to a [`BFieldCodec`] encoded
113113
/// element of type `T`
114-
pub(crate) fn pop_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>) -> T {
114+
pub fn pop_encodable<T: BFieldCodec>(stack: &mut Vec<BFieldElement>) -> T {
115115
let len = T::static_length().unwrap();
116116
let limbs = (0..len).map(|_| stack.pop().unwrap()).collect_vec();
117117
*T::decode(&limbs).unwrap()

0 commit comments

Comments
 (0)