mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-03 03:21:37 +02:00
fix: leaner error handling by boxing large variants
This commit is contained in:
@@ -77,7 +77,7 @@ pub async fn extract_text_from_file(
|
||||
let file_bytes = storage
|
||||
.get(&file_info.path)
|
||||
.await
|
||||
.map_err(AppError::Storage)?;
|
||||
.map_err(AppError::from)?;
|
||||
let local_path = resolve_existing_local_path(storage, &file_info.path).await;
|
||||
|
||||
match file_info.mime_type.as_str() {
|
||||
|
||||
Reference in New Issue
Block a user