From 91d2b568c93ea7d02290d3d14128496bcbfb982d Mon Sep 17 00:00:00 2001 From: Louis-Vincent Date: Wed, 3 Apr 2024 09:59:19 -0400 Subject: [PATCH] Make `calculate_token_untyped` public Fixes: #974 --- scylla/src/statement/prepared_statement.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scylla/src/statement/prepared_statement.rs b/scylla/src/statement/prepared_statement.rs index bc0cc1df8..7ca2a7259 100644 --- a/scylla/src/statement/prepared_statement.rs +++ b/scylla/src/statement/prepared_statement.rs @@ -197,10 +197,12 @@ impl PreparedStatement { pub fn calculate_token(&self, values: &impl SerializeRow) -> Result, QueryError> { self.calculate_token_untyped(&self.serialize_values(values)?) } - - // A version of calculate_token which skips serialization and uses SerializedValues directly. - // Not type-safe, so not exposed to users. - pub(crate) fn calculate_token_untyped( + + // A version of calculate_token which skips serialization and uses SerializedValues directly (not type safe). + /// + /// Returns the token that would be computed for executing the provided + /// prepared statement with the provided values. + pub fn calculate_token_untyped( &self, values: &SerializedValues, ) -> Result, QueryError> {