From 5a8fb325531fd7aa60cd16e6a6fa3ad1151ede94 Mon Sep 17 00:00:00 2001 From: Hans Moog Date: Thu, 14 Nov 2024 12:50:27 +0100 Subject: [PATCH] cleaned code --- .../crates/move-binary-format/src/compatibility.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/external-crates/move/crates/move-binary-format/src/compatibility.rs b/external-crates/move/crates/move-binary-format/src/compatibility.rs index d564f639564..e05d223cdd9 100644 --- a/external-crates/move/crates/move-binary-format/src/compatibility.rs +++ b/external-crates/move/crates/move-binary-format/src/compatibility.rs @@ -220,7 +220,6 @@ impl Compatibility { datatype_layout!("removed variant {tag} from enum {name}"); break; }; - if new_variant.name != old_variant.name { // TODO: Variant renamed. This is a stricter definition than required. // We could in principle choose that changing the name (but not position or @@ -273,12 +272,12 @@ impl Compatibility { // Check visibility compatibility match (old_func.visibility, new_func.visibility) { - (Visibility::Public, Visibility::Private | Visibility::Friend) => { - datatype_and_function_linking!("downgraded visibility of public function {name}"); - }, - (Visibility::Friend, Visibility::Private) => { - friend_linking!("downgraded visibility of friend function {name}"); - }, + (Visibility::Public, Visibility::Private | Visibility::Friend) => datatype_and_function_linking!( + "downgraded visibility of public function {name}" + ), + (Visibility::Friend, Visibility::Private) => friend_linking!( + "downgraded visibility of friend function {name}" + ), _ => (), }