Skip to content

Commit

Permalink
Merge pull request #1093 from ScuffleTV/troy/add-default-json
Browse files Browse the repository at this point in the history
feat(types): add default derive to json wrapper
  • Loading branch information
sfackler authored Jan 15, 2024
2 parents bbc0414 + 90c92c2 commit e8f44ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-types/src/serde_json_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::fmt::Debug;
use std::io::Read;

/// A wrapper type to allow arbitrary `Serialize`/`Deserialize` types to convert to Postgres JSON values.
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(Clone, Default, Debug, PartialEq, Eq)]
pub struct Json<T>(pub T);

impl<'a, T> FromSql<'a> for Json<T>
Expand Down

0 comments on commit e8f44ec

Please sign in to comment.