Fix: Turn unconditional import of sqlx::types::Json into conditional one

This commit is contained in:
bitfl0wer 2024-07-20 17:30:21 +02:00
parent 0beb4484ca
commit 88efef6015
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,6 @@
use chrono::{DateTime, Utc};
use serde::{Deserialize, Deserializer, Serialize};
use serde_repr::{Deserialize_repr, Serialize_repr};
use sqlx::types::Json;
use std::fmt::{Debug, Formatter};
use std::str::FromStr;
@ -28,6 +27,9 @@ use crate::gateway::Updateable;
use chorus_macros::{observe_option_vec, Composite, Updateable};
use serde::de::{Error, Visitor};
#[cfg(feature = "sqlx")]
use sqlx::types::Json;
use super::{option_arc_rwlock_ptr_eq, option_vec_arc_rwlock_ptr_eq};
#[derive(Default, Debug, Serialize, Deserialize, Clone)]