diff --git a/third_party/move/move-compiler/src/shared/mod.rs b/third_party/move/move-compiler/src/shared/mod.rs index e3fc12339de44..20e06197cb2af 100644 --- a/third_party/move/move-compiler/src/shared/mod.rs +++ b/third_party/move/move-compiler/src/shared/mod.rs @@ -634,7 +634,7 @@ pub enum LanguageVersion { } impl LanguageVersion { - fn to_ordinal(&self) -> usize { + fn to_ordinal(self) -> usize { match self { LanguageVersion::V1 => 0, LanguageVersion::V2 => 1,