mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Style errors and compile problems
This commit is contained in:
2 files changed
+2
-7
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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<UrlPreviewData> {
|
||||
use webpage::HTML;
|
||||
|
||||
|
||||
Reference in new issue
Block a user