diff --git a/src/api/server/utils.rs b/src/api/server/utils.rs index 7b9103876..52912dfdc 100644 --- a/src/api/server/utils.rs +++ b/src/api/server/utils.rs @@ -1,4 +1,4 @@ -use conduwuit::{Err, Result, implement, is_false}; +use conduwuit::{Err, Result, is_false}; use conduwuit_service::Services; use futures::{FutureExt, future::OptionFuture, join}; use ruma::{EventId, RoomId, ServerName}; @@ -10,7 +10,7 @@ pub(super) struct AccessCheck<'a> { pub(super) event_id: Option<&'a EventId>, } -impl<'a> AccessCheck { +impl AccessCheck<'_> { /// Asserts that the server has access to the room and event (if any). /// If the server is permitted, `Ok(())` is returned. Otherwise, a Forbidden /// error is returned. diff --git a/src/service/media/preview.rs b/src/service/media/preview.rs index 21e096019..54b321fba 100644 --- a/src/service/media/preview.rs +++ b/src/service/media/preview.rs @@ -123,7 +123,6 @@ impl Service { } #[cfg(feature = "url_preview")] - pub async fn download_image( &self, url: &str, @@ -179,7 +178,6 @@ impl Service { } #[cfg(feature = "url_preview")] - pub async fn download_video( &self, url: &str, @@ -197,7 +195,6 @@ impl Service { } #[cfg(feature = "url_preview")] - pub async fn download_audio( &self, url: &str, @@ -215,7 +212,6 @@ impl Service { } #[cfg(feature = "url_preview")] - pub async fn download_media(&self, url: &str) -> Result<(OwnedMxcUri, usize)> { use conduwuit::utils::random_string; use http::header::CONTENT_TYPE; @@ -278,7 +274,6 @@ impl Service { } #[cfg(feature = "url_preview")] - async fn download_html(&self, url: &str) -> Result { use webpage::HTML;