Skip to content

Commit 5100622

Browse files
authored
Merge pull request #662 from danburkert/json-derive
derive Clone, PartialEq and Eq for postgres_types::Json
2 parents 587193f + aadd908 commit 5100622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres-types/src/serde_json_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::fmt::Debug;
88
use std::io::Read;
99

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

1414
impl<'a, T> FromSql<'a> for Json<T>

0 commit comments

Comments
 (0)