mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
fix: prepr
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user