Fix PAT notation and Touchdown notations. Backwards compatible w/ v3.0.0 if

`implicit_some` enabled in RON log and no PAT specified within.
This commit is contained in:
Cutieguwu
2025-03-31 18:39:05 -04:00
parent 46c806e537
commit f2a41be8d1
8 changed files with 31 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ impl LogFile {
/// Returns if the LogFile min version is compatible.
pub fn is_compatible(&self) -> bool {
self.min_ver().cmp_precedence(&super::MIN_VER).is_lt()
self.min_ver().cmp_precedence(&crate::MIN_VER).is_lt()
}
}
@@ -28,7 +28,9 @@ impl TryFrom<File> for LogFile {
type Error = ron::error::SpannedError;
fn try_from(file: File) -> Result<Self, Self::Error> {
ron::de::from_reader(file)
ron::Options::default()
.with_default_extension(ron::extensions::Extensions::EXPLICIT_STRUCT_NAMES)
.from_reader(file)
}
}