summaryrefslogtreecommitdiff
path: root/src/repo
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo')
-rw-r--r--src/repo/channel.rs2
-rw-r--r--src/repo/login/store.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/repo/channel.rs b/src/repo/channel.rs
index 95516d2..8f089e8 100644
--- a/src/repo/channel.rs
+++ b/src/repo/channel.rs
@@ -16,7 +16,7 @@ impl<'c> Provider for Transaction<'c, Sqlite> {
pub struct Channels<'t>(&'t mut SqliteConnection);
-#[derive(Debug, serde::Serialize)]
+#[derive(Debug, Eq, PartialEq, serde::Serialize)]
pub struct Channel {
pub id: Id,
pub name: String,
diff --git a/src/repo/login/store.rs b/src/repo/login/store.rs
index d979579..2f922d7 100644
--- a/src/repo/login/store.rs
+++ b/src/repo/login/store.rs
@@ -18,7 +18,7 @@ pub struct Logins<'t>(&'t mut SqliteConnection);
// can be used as an extractor for endpoints that want to require login, or for
// endpoints that need to behave differently depending on whether the client is
// or is not logged in.
-#[derive(Clone, Debug, serde::Serialize)]
+#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize)]
pub struct Login {
pub id: Id,
pub name: String,