Skip to content

Commit 938f093

Browse files
committed
Format
1 parent 5c6dc94 commit 938f093

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runtime/src/snapshot_utils.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,12 +2317,10 @@ fn untar_snapshot_create_shared_buffer(
23172317
match archive_format {
23182318
ArchiveFormat::TarBzip2 => SharedBuffer::new(BzDecoder::new(BufReader::new(open_file()))),
23192319
ArchiveFormat::TarGzip => SharedBuffer::new(GzDecoder::new(open_file())),
2320-
ArchiveFormat::TarZstd { .. } => SharedBuffer::new(
2321-
zstd::stream::read::Decoder::new(open_file()).unwrap(),
2322-
),
2323-
ArchiveFormat::TarLz4 => {
2324-
SharedBuffer::new(lz4::Decoder::new(open_file()).unwrap())
2320+
ArchiveFormat::TarZstd { .. } => {
2321+
SharedBuffer::new(zstd::stream::read::Decoder::new(open_file()).unwrap())
23252322
}
2323+
ArchiveFormat::TarLz4 => SharedBuffer::new(lz4::Decoder::new(open_file()).unwrap()),
23262324
ArchiveFormat::Tar => SharedBuffer::new(BufReader::new(open_file())),
23272325
}
23282326
}

0 commit comments

Comments
 (0)