Skip to content

Commit 43ea6d3

Browse files
committed
fix: I should probably compile this stuff
1 parent 35e7391 commit 43ea6d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types/mod_json.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ impl ModJson {
9595
store_image: bool,
9696
) -> Result<ModJson, ApiError> {
9797
let mut bytes: Vec<u8> = vec![];
98-
match file.take(&mut bytes, 100_000_000) {
98+
let mut take = file.take(100_000_000);
99+
match take.read_to_end(&mut bytes) {
99100
Err(e) => {
100101
log::error!("Failed to read bytes from {}: {}", download_url, e);
101102
return Err(ApiError::FilesystemError);

0 commit comments

Comments
 (0)