@@ -73,37 +73,37 @@ mod opcode {
7373
7474 #[ pyfunction]
7575 fn has_arg ( opcode : i32 ) -> bool {
76- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_arg ( ) )
76+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_arg ( ) )
7777 }
7878
7979 #[ pyfunction]
8080 fn has_const ( opcode : i32 ) -> bool {
81- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_const ( ) )
81+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_const ( ) )
8282 }
8383
8484 #[ pyfunction]
8585 fn has_name ( opcode : i32 ) -> bool {
86- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_name ( ) )
86+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_name ( ) )
8787 }
8888
8989 #[ pyfunction]
9090 fn has_jump ( opcode : i32 ) -> bool {
91- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_jump ( ) )
91+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_jump ( ) )
9292 }
9393
9494 #[ pyfunction]
9595 fn has_free ( opcode : i32 ) -> bool {
96- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_free ( ) )
96+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_free ( ) )
9797 }
9898
9999 #[ pyfunction]
100100 fn has_local ( opcode : i32 ) -> bool {
101- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_local ( ) )
101+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_local ( ) )
102102 }
103103
104104 #[ pyfunction]
105105 fn has_exc ( opcode : i32 ) -> bool {
106- OpcodeId :: try_from ( opcode) . map_or ( false , |oid| !oid. is_pseudo ( ) && oid. has_exc ( ) )
106+ OpcodeId :: try_from ( opcode) . is_ok_and ( |oid| !oid. is_pseudo ( ) && oid. has_exc ( ) )
107107 }
108108
109109 #[ pyfunction]
0 commit comments