Skip to content

Commit

Permalink
Update version.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Besancon committed Sep 8, 2023
1 parent 36e3c9c commit 821dc76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion massa-models/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ impl Deserializer<Version> 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
}
}

Expand Down

0 comments on commit 821dc76

Please sign in to comment.