Fix VersionedSlate::version() misreporting V5 slates as V4

version() returned SlateVersion::V4 for the V5 variant, so any
version-aware logic downstream would misidentify a V5 slate as V4.
Return V5 for V5.
This commit is contained in:
jwinterm
2026-06-02 18:27:12 -04:00
parent f7d3692ee8
commit 79a403127b
+1 -1
View File
@@ -67,7 +67,7 @@ impl VersionedSlate {
/// Return slate version
pub fn version(&self) -> SlateVersion {
match *self {
VersionedSlate::V5(_) => SlateVersion::V4,
VersionedSlate::V5(_) => SlateVersion::V5,
VersionedSlate::V4(_) => SlateVersion::V4,
}
}