From 8a829a994af50970b80a8c554de47985ab38ee24 Mon Sep 17 00:00:00 2001 From: Gabriel do Carmo Vieira <48625433+gvieira18@users.noreply.github.com> Date: Sat, 9 Nov 2024 03:16:05 -0300 Subject: [PATCH] fix: format issues --- src/helpers/query_parameter.rs | 2 +- src/helpers/query_results.rs | 2 +- src/session/scylla_session.rs | 2 +- src/types/tracing.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helpers/query_parameter.rs b/src/helpers/query_parameter.rs index 1a3af00..2039dc1 100644 --- a/src/helpers/query_parameter.rs +++ b/src/helpers/query_parameter.rs @@ -1,7 +1,7 @@ use scylla::serialize::{ - RowWriter, SerializationError, row::{RowSerializationContext, SerializeRow}, value::SerializeCql, + RowWriter, SerializationError, }; use super::{cql_value_bridge::ParameterWithMapType, to_cql_value::ToCqlValue}; diff --git a/src/helpers/query_results.rs b/src/helpers/query_results.rs index dfef807..58a4e22 100644 --- a/src/helpers/query_results.rs +++ b/src/helpers/query_results.rs @@ -1,6 +1,6 @@ use std::collections::HashMap; -use napi::bindgen_prelude::{BigInt, Either9, Either10, Either11}; +use napi::bindgen_prelude::{BigInt, Either10, Either11, Either9}; use scylla::frame::response::result::{ColumnType, CqlValue}; use crate::types::{decimal::Decimal, duration::Duration, uuid::Uuid}; diff --git a/src/session/scylla_session.rs b/src/session/scylla_session.rs index e6e135c..26f2cbb 100644 --- a/src/session/scylla_session.rs +++ b/src/session/scylla_session.rs @@ -6,8 +6,8 @@ use crate::query::scylla_prepared_statement::PreparedStatement; use crate::query::scylla_query::Query; use crate::types::tracing::TracingReturn; use crate::types::uuid::Uuid; -use napi::Either; use napi::bindgen_prelude::Either3; +use napi::Either; use scylla::statement::query::Query as ScyllaQuery; use super::metrics; diff --git a/src/types/tracing.rs b/src/types/tracing.rs index 84b49f2..8a14aa7 100644 --- a/src/types/tracing.rs +++ b/src/types/tracing.rs @@ -15,7 +15,7 @@ impl Serialize for CqlTimestampWrapper { where S: serde::Serializer, { - serializer.serialize_i64(self.0.0) + serializer.serialize_i64(self.0 .0) } } @@ -88,4 +88,4 @@ impl From for TracingEvent { } pub type TracingReturn = - HashMap>, serde_json::Value>>; \ No newline at end of file + HashMap>, serde_json::Value>>;