chore: clippy and rustfmt cleanup on new code

This commit is contained in:
2026-08-08 20:35:43 +08:00
parent c40b074b3c
commit 755330e585
6 changed files with 26 additions and 27 deletions
+1 -4
View File
@@ -318,10 +318,7 @@ pub async fn media_size(url: &str) -> Result<Option<u64>, FetchError> {
/// download aborts with [`FetchError::TooLarge`] the moment the cap is
/// crossed (or when a declared Content-Length already exceeds it). Keeps the
/// bot from buffering arbitrarily large bodies into memory.
pub async fn download_media_limited(
url: &str,
max_bytes: u64,
) -> Result<bytes::Bytes, FetchError> {
pub async fn download_media_limited(url: &str, max_bytes: u64) -> Result<bytes::Bytes, FetchError> {
let mut request = CLIENT.get(url);
let lower = url.to_ascii_lowercase();
if lower.contains("pximg.net") {