summary refs log tree commit diff
path: root/rust/src/push/mod.rs
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-09-07 16:14:51 +0100
committerErik Johnston <erik@matrix.org>2022-09-09 15:10:52 +0100
commitbbba09e583e96d7e54086b47707e4a0b9f995cc2 (patch)
tree30b98eb7839d827c6819a03bc424b0bce4f3f382 /rust/src/push/mod.rs
parentFixup (diff)
downloadsynapse-bbba09e583e96d7e54086b47707e4a0b9f995cc2.tar.xz
fix up
Diffstat (limited to 'rust/src/push/mod.rs')
-rw-r--r--rust/src/push/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/rust/src/push/mod.rs b/rust/src/push/mod.rs
index d59a140ee1..e56fac40a7 100644
--- a/rust/src/push/mod.rs
+++ b/rust/src/push/mod.rs
@@ -5,14 +5,14 @@
 //! allocation atm).
 
 use std::borrow::Cow;
-use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
+use std::collections::{BTreeMap, BTreeSet, HashMap};
 
 use anyhow::{Context, Error};
 use lazy_static::lazy_static;
-use log::{info, warn};
+use log::warn;
 use pyo3::prelude::*;
 use pythonize::pythonize;
-use regex::{Regex, RegexBuilder};
+use regex::Regex;
 use serde::de::Error as _;
 use serde::{Deserialize, Serialize};
 use serde_json::Value;
@@ -105,7 +105,7 @@ impl PushRule {
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, PartialEq, Eq)]
 pub enum Action {
     DontNotify,
     Notify,
@@ -119,7 +119,7 @@ impl IntoPy<PyObject> for Action {
     }
 }
 
-#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
+#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
 pub struct SetTweak {
     set_tweak: Cow<'static, str>,
     value: Option<TweakValue>,
@@ -130,7 +130,7 @@ pub struct SetTweak {
     other_keys: Value,
 }
 
-#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
+#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
 #[serde(untagged)]
 pub enum TweakValue {
     String(Cow<'static, str>),