clippy allow -> expect

This commit is contained in:
dasha_uwu
2026-01-22 21:48:41 +05:00
committed by Jason Volk
parent fbedd713ca
commit 0c9a3abb71
91 changed files with 126 additions and 166 deletions

View File

@@ -165,7 +165,7 @@ pub async fn download_image(&self, url: &str) -> Result<UrlPreviewData> {
#[cfg(not(feature = "url_preview"))]
#[implement(Service)]
#[allow(clippy::unused_async)]
#[expect(clippy::unused_async)]
pub async fn download_image(&self, _url: &str) -> Result<UrlPreviewData> {
Err!(FeatureDisabled("url_preview"))
}
@@ -215,7 +215,7 @@ async fn download_html(&self, url: &str) -> Result<UrlPreviewData> {
#[cfg(not(feature = "url_preview"))]
#[implement(Service)]
#[allow(clippy::unused_async)]
#[expect(clippy::unused_async)]
async fn download_html(&self, _url: &str) -> Result<UrlPreviewData> {
Err!(FeatureDisabled("url_preview"))
}

View File

@@ -128,7 +128,7 @@ async fn fetch_content_authenticated(
}
}
#[allow(deprecated)]
#[expect(deprecated)]
#[implement(super::Service)]
async fn fetch_thumbnail_unauthenticated(
&self,
@@ -164,7 +164,7 @@ async fn fetch_thumbnail_unauthenticated(
.await
}
#[allow(deprecated)]
#[expect(deprecated)]
#[implement(super::Service)]
async fn fetch_content_unauthenticated(
&self,
@@ -360,7 +360,7 @@ fn handle_federation_error(
}
#[implement(super::Service)]
#[allow(deprecated)]
#[expect(deprecated)]
pub async fn fetch_remote_thumbnail_legacy(
&self,
body: &media::get_content_thumbnail::v3::Request,
@@ -403,7 +403,7 @@ pub async fn fetch_remote_thumbnail_legacy(
}
#[implement(super::Service)]
#[allow(deprecated)]
#[expect(deprecated)]
pub async fn fetch_remote_content_legacy(
&self,
mxc: &Mxc<'_>,

View File

@@ -26,7 +26,6 @@ pub struct Dim {
impl super::Service {
/// Uploads or replaces a file thumbnail.
#[allow(clippy::too_many_arguments)]
pub async fn upload_thumbnail(
&self,
mxc: &Mxc<'_>,