chore: allow result too large (#14795)

This commit is contained in:
Matthias Seitz
2025-03-03 10:43:17 +01:00
committed by GitHub
parent c701bba7ee
commit b36088da99
15 changed files with 22 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
use serde::{de::DeserializeOwned, Serialize};
use std::{
fs::{self, File, OpenOptions, ReadDir},
io::{self, BufWriter, Error, ErrorKind, Write},
io::{self, BufWriter, Error, Write},
path::{Path, PathBuf},
};
@@ -324,7 +324,7 @@ where
File::create(&tmp_path).map_err(|err| FsPathError::create_file(err, &tmp_path))?;
write_fn(&mut file).map_err(|err| FsPathError::Write {
source: Error::new(ErrorKind::Other, err.into()),
source: Error::other(err.into()),
path: tmp_path.clone(),
})?;