cargo fmt

This commit is contained in:
houseme
2025-06-27 18:53:51 +08:00
parent 8a4cb0319a
commit 7bd8431006
12 changed files with 29 additions and 55 deletions
+6 -2
View File
@@ -929,13 +929,17 @@ impl FileMetaVersion {
}
pub fn get_data_dir(&self) -> Option<Uuid> {
if self.valid() { {
if self.valid() {
{
if self.version_type == VersionType::Object {
self.object.as_ref().map(|v| v.data_dir).unwrap_or_default()
} else {
None
}
} } else { Default::default() }
}
} else {
Default::default()
}
}
pub fn get_version_id(&self) -> Option<Uuid> {