Skip to content

Commit 7b6d73d

Browse files
committed
scylla_cql: Publish methods needed for tests
Those constructors are needed for users that want to utilize our type ser / deser functionality more directly.
1 parent 222ea9c commit 7b6d73d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

scylla-cql/src/deserialize/frame_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'frame> FrameSlice<'frame> {
139139
///
140140
/// If the operation fails then the slice remains unchanged.
141141
#[inline]
142-
pub(super) fn read_cql_bytes(
142+
pub fn read_cql_bytes(
143143
&mut self,
144144
) -> Result<Option<FrameSlice<'frame>>, LowLevelDeserializationError> {
145145
// We copy the slice reference, not to mutate the FrameSlice in case of an error.

scylla-cql/src/deserialize/row.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ impl<'frame, 'metadata> ColumnIterator<'frame, 'metadata> {
2929
/// - `specs` - information about columns of the serialized response,
3030
/// - `slice` - a [FrameSlice] which points to the serialized row.
3131
#[inline]
32-
pub(crate) fn new(
33-
specs: &'metadata [ColumnSpec<'metadata>],
34-
slice: FrameSlice<'frame>,
35-
) -> Self {
32+
pub fn new(specs: &'metadata [ColumnSpec<'metadata>], slice: FrameSlice<'frame>) -> Self {
3633
Self {
3734
specs: specs.iter().enumerate(),
3835
slice,

0 commit comments

Comments
 (0)