From 64c6ac6a483c97a95397dee40d3721cbcd4dd4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Bary=C5=82a?= Date: Mon, 11 Dec 2023 22:41:25 +0100 Subject: [PATCH] Remove unnecessary `#[allow(dead_code)]` During the switch to new serialization API `#[allow(dead_code)]` was added in several places as a temporary measure. Those can now be removed. --- scylla-cql/src/types/serialize/row.rs | 2 -- scylla/src/statement/prepared_statement.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/scylla-cql/src/types/serialize/row.rs b/scylla-cql/src/types/serialize/row.rs index 381c958ae4..9ad7d0e56c 100644 --- a/scylla-cql/src/types/serialize/row.rs +++ b/scylla-cql/src/types/serialize/row.rs @@ -680,7 +680,6 @@ impl SerializedValues { } /// Creates value list from the request frame - #[allow(dead_code)] pub(crate) fn new_from_frame(buf: &mut &[u8]) -> Result { let values_num = types::read_short(buf)?; let values_beg = *buf; @@ -697,7 +696,6 @@ impl SerializedValues { } // Temporary function, to be removed when we implement new batching API (right now it is needed in frame::request::mod.rs tests) - #[allow(dead_code)] pub fn to_old_serialized_values(&self) -> LegacySerializedValues { let mut frame = Vec::new(); self.write_to_request(&mut frame); diff --git a/scylla/src/statement/prepared_statement.rs b/scylla/src/statement/prepared_statement.rs index 5ee2a13e33..f61fab901e 100644 --- a/scylla/src/statement/prepared_statement.rs +++ b/scylla/src/statement/prepared_statement.rs @@ -338,7 +338,6 @@ impl PreparedStatement { self.config.execution_profile_handle.as_ref() } - #[allow(dead_code)] pub(crate) fn serialize_values( &self, values: &impl SerializeRow,