diff --git a/scylla-cql/src/frame/types.rs b/scylla-cql/src/frame/types.rs index 77497cd37a..a9b4c9f957 100644 --- a/scylla-cql/src/frame/types.rs +++ b/scylla-cql/src/frame/types.rs @@ -678,11 +678,11 @@ fn unsigned_vint_decode(buf: &mut &[u8]) -> Result { Ok(v) } -pub(crate) fn vint_encode(v: i64, buf: &mut Vec) { +pub fn vint_encode(v: i64, buf: &mut Vec) { unsigned_vint_encode(zig_zag_encode(v), buf) } -pub(crate) fn vint_decode(buf: &mut &[u8]) -> Result { +pub fn vint_decode(buf: &mut &[u8]) -> Result { unsigned_vint_decode(buf).map(zig_zag_decode) }