From 821dc76b98a032bc16571f960271d1f1f945ab33 Mon Sep 17 00:00:00 2001 From: Leo-Besancon Date: Fri, 8 Sep 2023 10:37:21 +0200 Subject: [PATCH] Update version.rs --- massa-models/src/version.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/massa-models/src/version.rs b/massa-models/src/version.rs index beb6a929712..fe55ed2ab29 100644 --- a/massa-models/src/version.rs +++ b/massa-models/src/version.rs @@ -191,7 +191,10 @@ impl Deserializer for VersionDeserializer { impl Version { /// true if instance and major are the same pub fn is_compatible(&self, other: &Version) -> bool { - self.instance == other.instance && self.major == other.major && self.minor > 0 && other.minor > 0 + self.instance == other.instance + && self.major == other.major + && self.minor > 0 + && other.minor > 0 } }