Skip to content

Commit 01e18d0

Browse files
Piotr DębskiPiotr Dębski
authored andcommitted
formating fix
1 parent 163e40f commit 01e18d0

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

datafusion/bio-format-core/src/object_storage.rs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -438,14 +438,8 @@ mod tests {
438438

439439
#[test]
440440
fn test_storage_type_from_string() {
441-
assert_eq!(
442-
StorageType::from_prefix("gs".to_string()),
443-
StorageType::GCS
444-
);
445-
assert_eq!(
446-
StorageType::from_prefix("s3".to_string()),
447-
StorageType::S3
448-
);
441+
assert_eq!(StorageType::from_prefix("gs".to_string()), StorageType::GCS);
442+
assert_eq!(StorageType::from_prefix("s3".to_string()), StorageType::S3);
449443
assert_eq!(
450444
StorageType::from_prefix("abfs".to_string()),
451445
StorageType::AZBLOB
@@ -490,13 +484,22 @@ mod tests {
490484
#[test]
491485
fn test_get_compression_type() {
492486
let file_path_gz = "file.vcf.gz".to_string();
493-
assert_eq!(get_compression_type(file_path_gz, None), CompressionType::GZIP);
487+
assert_eq!(
488+
get_compression_type(file_path_gz, None),
489+
CompressionType::GZIP
490+
);
494491

495492
let file_path_bgz = "file.vcf.bgz".to_string();
496-
assert_eq!(get_compression_type(file_path_bgz, None), CompressionType::BGZF);
493+
assert_eq!(
494+
get_compression_type(file_path_bgz, None),
495+
CompressionType::BGZF
496+
);
497497

498498
let file_path_none = "file.vcf".to_string();
499-
assert_eq!(get_compression_type(file_path_none, None), CompressionType::NONE);
499+
assert_eq!(
500+
get_compression_type(file_path_none, None),
501+
CompressionType::NONE
502+
);
500503
}
501504

502505
#[test]
@@ -551,4 +554,4 @@ mod tests {
551554
assert!(result.is_ok(), "Fetch failed with error.");
552555
});
553556
}
554-
}
557+
}

0 commit comments

Comments
 (0)