mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Do only one convertion to u64
This commit is contained in:
parent
5d5615ef45
commit
7b2f2a4f9c
3 changed files with 8 additions and 8 deletions
|
@ -1190,7 +1190,7 @@ mod tests {
|
|||
pub fn read_json(
|
||||
bytes: &[u8],
|
||||
write: impl Write + Seek,
|
||||
) -> std::result::Result<usize, DocumentFormatError> {
|
||||
) -> std::result::Result<u64, DocumentFormatError> {
|
||||
let temp_file = NamedTempFile::new().unwrap();
|
||||
let mut buffer = BufWriter::new(temp_file.reopen().unwrap());
|
||||
buffer.write_all(bytes).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue