Skip to content

Commit 6ca9a7c

Browse files
authored
Merge pull request #1262 from Lorak-mmk/internal_testing_hidden
Minor API stabilization changes
2 parents 2764fc1 + 33c06a8 commit 6ca9a7c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

scylla/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ pub(crate) mod utils;
255255
pub(crate) use utils::test_utils;
256256

257257
#[cfg(feature = "unstable-testing")]
258+
#[doc(hidden)]
258259
pub mod internal_testing {
259260
use scylla_cql::serialize::row::SerializedValues;
260261

scylla/src/statement/batch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ impl Default for Batch {
168168

169169
/// This enum represents a CQL statement, that can be part of batch.
170170
#[derive(Clone)]
171+
#[non_exhaustive]
171172
pub enum BatchStatement {
172173
Query(Statement),
173174
PreparedStatement(PreparedStatement),

scylla/src/statement/prepared.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,12 +466,14 @@ impl PreparedStatement {
466466
}
467467

468468
#[derive(Clone, Debug, Error, PartialEq, Eq, PartialOrd, Ord)]
469+
#[non_exhaustive]
469470
pub enum PartitionKeyExtractionError {
470471
#[error("No value with given pk_index! pk_index: {0}, values.len(): {1}")]
471472
NoPkIndexValue(u16, u16),
472473
}
473474

474475
#[derive(Clone, Debug, Error, PartialEq, Eq, PartialOrd, Ord)]
476+
#[non_exhaustive]
475477
pub enum TokenCalculationError {
476478
#[error("Value bytes too long to create partition key, max 65 535 allowed! value.len(): {0}")]
477479
ValueTooLong(usize),

0 commit comments

Comments
 (0)