Skip to content

Commit

Permalink
tuple: change constant to UNTYPED_TUPLE_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
muzarski committed Aug 1, 2024
1 parent 382d396 commit e46b86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scylla-rust-wrapper/src/tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::value;
use crate::value::CassCqlValue;
use std::sync::Arc;

static EMPTY_TUPLE_TYPE: CassDataType = CassDataType::Tuple(Vec::new());
static UNTYPED_TUPLE_TYPE: CassDataType = CassDataType::Tuple(Vec::new());

#[derive(Clone)]
pub struct CassTuple {
Expand Down Expand Up @@ -89,7 +89,7 @@ unsafe extern "C" fn cass_tuple_free(tuple: *mut CassTuple) {
unsafe extern "C" fn cass_tuple_data_type(tuple: *const CassTuple) -> *const CassDataType {
match &ptr_to_ref(tuple).data_type {
Some(t) => Arc::as_ptr(t),
None => &EMPTY_TUPLE_TYPE,
None => &UNTYPED_TUPLE_TYPE,
}
}

Expand Down

0 comments on commit e46b86f

Please sign in to comment.