Skip to content

Commit

Permalink
Import optimised
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Apr 4, 2024
1 parent 88c3e79 commit 070af66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/firestore_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 070af66

Please sign in to comment.