fix: prepr

This commit is contained in:
Calum H. (IMB11)
2026-07-28 17:38:33 +01:00
parent 6ef99c5989
commit 562b8e77a8
73 changed files with 173 additions and 770 deletions
+2 -8
View File
@@ -1,7 +1,5 @@
use crate::State;
use crate::util::fetch::{
fetch_advanced, fetch_advanced_bytes, fetch_json,
};
use crate::util::fetch::{fetch_advanced, fetch_advanced_bytes, fetch_json};
use bytes::Bytes;
use reqwest::Method;
use serde::{Deserialize, Serialize};
@@ -169,11 +167,7 @@ pub async fn delete_user_avatar(user_id: &str) -> crate::Result<()> {
fetch_advanced(
Method::DELETE,
&format!(
"{}user/{}/icon",
env!("MODRINTH_API_URL"),
user_id
),
&format!("{}user/{}/icon", env!("MODRINTH_API_URL"), user_id),
None,
None,
None,
+3 -3
View File
@@ -590,9 +590,9 @@ pub async fn fetch_advanced_with_client(
.await
}
#[tracing::instrument(
skip(json_body, bytes_body, semaphore, client, progress)
)]
#[tracing::instrument(skip(
json_body, bytes_body, semaphore, client, progress
))]
#[allow(clippy::too_many_arguments)]
async fn fetch_advanced_with_client_and_progress(
method: Method,