diff --git a/accounts-db/src/tiered_storage/file.rs b/accounts-db/src/tiered_storage/file.rs index 7f234527b154b0..ea6bf361dbd72e 100644 --- a/accounts-db/src/tiered_storage/file.rs +++ b/accounts-db/src/tiered_storage/file.rs @@ -147,12 +147,12 @@ mod tests { fn generate_test_file_with_number(path: impl AsRef, number: u64) { // Generate a new temp path that is guaranteed to NOT already have a file. - let file = TieredStorageFile::new_writable(&path).unwrap(); + let file = TieredStorageFile::new_writable(path).unwrap(); file.write_pod(&number).unwrap(); } #[test] - fn test_magic_number() { + fn test_check_magic_number() { let temp_dir = TempDir::new().unwrap(); let path = temp_dir.path().join("test_check_magic_number"); generate_test_file_with_number(&path, FILE_MAGIC_NUMBER); @@ -163,7 +163,7 @@ mod tests { .open(&path) .unwrap(), ); - assert!(matches!(file.check_magic_number(), Ok(()))); + assert!(file.check_magic_number().is_ok()); } #[test]