@@ -73,37 +73,37 @@ mod opcode {
7373
7474#[ pyfunction]
7575fn 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]
8080fn 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]
8585fn 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]
9090fn 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]
9595fn 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]
100100fn 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]
105105fn 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]