cargo fmt

This commit is contained in:
Alex Auvolat 2021-04-17 20:30:43 +02:00
parent 163ee977a0
commit 0e05b9bc77
No known key found for this signature in database
GPG Key ID: 09EC5284AA804D3C

View File

@ -526,7 +526,8 @@ impl BlockManager {
// If compressed data is not less than 7/8 of the size of the original data, i.e. if we // If compressed data is not less than 7/8 of the size of the original data, i.e. if we
// don't gain a significant margin by compressing, then we store the plain data instead // don't gain a significant margin by compressing, then we store the plain data instead
// so that we don't lose time decompressing it on reads. // so that we don't lose time decompressing it on reads.
let block_data = if compressed.is_some() && compressed.as_ref().unwrap().len() < (data.len() * 7) / 8 { let block_data =
if compressed.is_some() && compressed.as_ref().unwrap().len() < (data.len() * 7) / 8 {
BlockData::Compressed(compressed.unwrap()) BlockData::Compressed(compressed.unwrap())
} else { } else {
BlockData::Plain(data) BlockData::Plain(data)