From 070af668d13c8ad33c5396de740cb72d4628d47b Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Thu, 4 Apr 2024 18:22:57 +0200 Subject: [PATCH] Import optimised --- src/firestore_meta.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/firestore_meta.rs b/src/firestore_meta.rs index 08e9fc4..2a3e2e0 100644 --- a/src/firestore_meta.rs +++ b/src/firestore_meta.rs @@ -4,7 +4,6 @@ use crate::FirestoreTransactionId; use chrono::{DateTime, Duration, Utc}; use gcloud_sdk::google::firestore::v1::{Document, ExplainMetrics, RunQueryResponse}; use gcloud_sdk::prost_types::value::Kind; -use gcloud_sdk::prost_types::Value; use rsb_derive::Builder; use std::collections::BTreeMap; @@ -35,7 +34,7 @@ pub struct FirestoreDynamicStruct { impl std::fmt::Debug for FirestoreDynamicStruct { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - fn pretty_print(v: &Value) -> String { + fn pretty_print(v: &gcloud_sdk::prost_types::Value) -> String { match v.kind.as_ref() { Some(Kind::NullValue(_)) => "null".to_string(), Some(Kind::BoolValue(v)) => v.to_string(),