X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fnewtypes.rs;h=5d23b12a88f842d83cfd6257fc67e67ca01dc8d3;hb=c9f140742925d6da20103124b49f2b58a35fc2b8;hp=4431103cced6a6775912b73d6363052553ec294f;hpb=4e6409f325bca5b2727b19c24d77ffa2b59109b1;p=lemmy.git diff --git a/crates/db_schema/src/newtypes.rs b/crates/db_schema/src/newtypes.rs index 4431103c..5d23b12a 100644 --- a/crates/db_schema/src/newtypes.rs +++ b/crates/db_schema/src/newtypes.rs @@ -86,9 +86,9 @@ pub struct LocalUserLanguageId(pub i32); pub struct CommentReplyId(i32); #[repr(transparent)] -#[derive(Clone, PartialEq, Serialize, Deserialize, Debug)] +#[derive(Clone, PartialEq, Eq, Serialize, Deserialize, Debug)] #[cfg_attr(feature = "full", derive(AsExpression, FromSqlRow))] -#[cfg_attr(feature = "full", sql_type = "diesel::sql_types::Text")] +#[cfg_attr(feature = "full", diesel(sql_type = diesel::sql_types::Text))] pub struct DbUrl(pub(crate) Url); #[derive(Serialize, Deserialize)]