summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/files.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/files.rs b/src/files.rs
index c4b2669..0bc531d 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -4,7 +4,7 @@ use axum::{
extract::{Multipart, Path},
http::header::{HeaderMap, HeaderName, HeaderValue},
};
-use std::fs::read;
+use std::fs;
use rand::random;
@@ -76,5 +76,5 @@ pub async fn show_uploads(Path(id): Path<String>) -> (HeaderMap, Vec<u8>) {
);
}
let file_name = format!("{}/{}", CONFIG.save_file_base_path, id);
- (headers, read(&file_name).unwrap())
+ (headers, fs::read(&file_name).unwrap())
}