Skip to content

Commit

Permalink
Disambiguate Deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Apr 23, 2024
1 parent cc2728f commit 0263fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gremlin-client/src/message.rs
@@ -1,4 +1,4 @@
use serde::{Deserialize, Deserializer};
use serde::{Deserialize as SerdeDeserialize, Deserializer};
use serde_derive::{Deserialize, Serialize};
use serde_json::Value;
use uuid::Uuid;
Expand Down Expand Up @@ -73,7 +73,7 @@ pub struct ReponseStatus {
fn map_null_to_default<'de, D, T>(de: D) -> Result<T, D::Error>
where
D: Deserializer<'de>,
T: Default + Deserialize<'de>,
T: Default + SerdeDeserialize<'de>,
{
Option::<T>::deserialize(de).map(Option::unwrap_or_default)
}
Expand Down

0 comments on commit 0263fbf

Please sign in to comment.