clipped2
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Successful in 7m32s
CI / test (push) Failing after 13m4s

This commit is contained in:
2025-09-01 23:33:27 +03:00
parent eaa99108a9
commit 1aace5fd19
6 changed files with 6 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ pub async fn load_file_from_s3(
}
/// Генерирует ключ с правильным расширением на основе MIME-типа.
#[allow(clippy::collapsible_if)]
pub fn generate_key_with_extension(base_key: String, mime_type: String) -> String {
let mime: mime::Mime =
mime::Mime::from_str(&mime_type).unwrap_or(mime::APPLICATION_OCTET_STREAM);