diff --git a/cprover_bindings/src/goto_program/typ.rs b/cprover_bindings/src/goto_program/typ.rs index 92c7e99c64a0..010ae83af204 100644 --- a/cprover_bindings/src/goto_program/typ.rs +++ b/cprover_bindings/src/goto_program/typ.rs @@ -898,11 +898,11 @@ impl Type { } else if concrete_self.is_scalar() && concrete_other.is_scalar() { concrete_self == concrete_other } else if concrete_self.is_struct_like() && concrete_other.is_scalar() { - (concrete_self - .unwrap_transparent_type(st) == Some(*concrete_other)) + concrete_self + .unwrap_transparent_type(st) == Some(concrete_other.clone()) } else if concrete_self.is_scalar() && concrete_other.is_struct_like() { - (concrete_other - .unwrap_transparent_type(st) == Some(*concrete_self)) + concrete_other + .unwrap_transparent_type(st) == Some(concrete_self.clone()) } else if concrete_self.is_struct_like() && concrete_other.is_struct_like() { let self_components = concrete_self.get_non_empty_components(st).unwrap(); let other_components = concrete_other.get_non_empty_components(st).unwrap();