Resolve FIXME

This commit is contained in:
Jonas Platte 2020-08-18 00:05:35 +02:00
parent 3428cabdca
commit 7764671c36
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,7 @@ ruma_api! {
} }
/// A filter represented either as its full JSON definition or the ID of a saved filter. /// A filter represented either as its full JSON definition or the ID of a saved filter.
#[derive(Clone, Debug, Outgoing, Serialize)] #[derive(Clone, Copy, Debug, Outgoing, Serialize)]
#[allow(clippy::large_enum_variant)] #[allow(clippy::large_enum_variant)]
#[serde(untagged)] #[serde(untagged)]
pub enum Filter<'a> { pub enum Filter<'a> {

View File

@ -331,7 +331,6 @@ where
let client = self.clone(); let client = self.clone();
stream::try_unfold(since, move |since| { stream::try_unfold(since, move |since| {
let client = client.clone(); let client = client.clone();
let filter = filter.clone(); // FIXME: Remove once `SyncFilter` is `Copy`
async move { async move {
let response = client let response = client