{"$message_type":"diagnostic","message":"this `if` can be collapsed into the outer `match`","code":{"code":"clippy::collapsible_match","explanation":null},"level":"error","spans":[{"file_name":"src/mappers.rs","byte_start":34049,"byte_end":34311,"line_start":975,"line_end":980,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" if address & 3 == 1 {","highlight_start":25,"highlight_end":46},{"text":" state.page_67 = value;","highlight_start":1,"highlight_end":51},{"text":" if state.page_61 & 0x80 != 0 {","highlight_start":1,"highlight_end":59},{"text":" state.page[0] = 8 + ((value & 0x1C) >> 2);","highlight_start":1,"highlight_end":75},{"text":" }","highlight_start":1,"highlight_end":30},{"text":" }","highlight_start":1,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#collapsible_match","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`-D clippy::collapsible-match` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-D warnings` add `#[allow(clippy::collapsible_match)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"collapse nested if block","code":null,"level":"help","spans":[{"file_name":"src/mappers.rs","byte_start":34069,"byte_end":34069,"line_start":975,"line_end":975,"column_start":45,"column_end":45,"is_primary":true,"text":[{"text":" if address & 3 == 1 {","highlight_start":45,"highlight_end":45}],"label":null,"suggested_replacement":"=> ","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/mappers.rs","byte_start":34019,"byte_end":34024,"line_start":974,"line_end":974,"column_start":22,"column_end":27,"is_primary":true,"text":[{"text":" 7 => {","highlight_start":22,"highlight_end":27}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/mappers.rs","byte_start":34311,"byte_end":34333,"line_start":980,"line_end":981,"column_start":26,"column_end":22,"is_primary":true,"text":[{"text":" }","highlight_start":26,"highlight_end":26},{"text":" }","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: this `if` can be collapsed into the outer `match`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/mappers.rs:975:25\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m975\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m/\u001b[0m if address & 3 == 1 {\n\u001b[1m\u001b[94m976\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m state.page_67 = value;\n\u001b[1m\u001b[94m977\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m if state.page_61 & 0x80 != 0 {\n\u001b[1m\u001b[94m978\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m state.page[0] = 8 + ((value & 0x1C) >> 2);\n\u001b[1m\u001b[94m979\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m }\n\u001b[1m\u001b[94m980\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|\u001b[0m }\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m|_________________________^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#collapsible_match\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `-D clippy::collapsible-match` implied by `-D warnings`\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: to override `-D warnings` add `#[allow(clippy::collapsible_match)]`\n\u001b[1m\u001b[96mhelp\u001b[0m: collapse nested if block\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m974\u001b[0m \u001b[92m~ \u001b[0m 7\n\u001b[1m\u001b[94m975\u001b[0m \u001b[92m~ \u001b[0m if address & 3 == 1 \u001b[92m=> \u001b[0m{\n\u001b[1m\u001b[94m976\u001b[0m \u001b[1m\u001b[94m|\u001b[0m state.page_67 = value;\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m979\u001b[0m \u001b[1m\u001b[94m|\u001b[0m }\n\u001b[1m\u001b[94m980\u001b[0m \u001b[92m~ \u001b[0m }\n \u001b[1m\u001b[94m|\u001b[0m\n\n"} {"$message_type":"diagnostic","message":"manual `!Range::contains` implementation","code":{"code":"clippy::manual_range_contains","explanation":null},"level":"error","spans":[{"file_name":"src/mappers.rs","byte_start":37014,"byte_end":37053,"line_start":1051,"line_end":1051,"column_start":29,"column_end":68,"is_primary":true,"text":[{"text":" if sub.is_none() || address < 0x200000 || address >= WINDOW {","highlight_start":29,"highlight_end":68}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#manual_range_contains","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`-D clippy::manual-range-contains` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-D warnings` add `#[allow(clippy::manual_range_contains)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"use","code":null,"level":"help","spans":[{"file_name":"src/mappers.rs","byte_start":37014,"byte_end":37053,"line_start":1051,"line_end":1051,"column_start":29,"column_end":68,"is_primary":true,"text":[{"text":" if sub.is_none() || address < 0x200000 || address >= WINDOW {","highlight_start":29,"highlight_end":68}],"label":null,"suggested_replacement":"!(0x200000..WINDOW).contains(&address)","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: manual `!Range::contains` implementation\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/mappers.rs:1051:29\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1051\u001b[0m \u001b[1m\u001b[94m|\u001b[0m if sub.is_none() || address < 0x200000 || address >= WINDOW {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[1m\u001b[91mhelp: use: `!(0x200000..WINDOW).contains(&address)`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#manual_range_contains\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `-D clippy::manual-range-contains` implied by `-D warnings`\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: to override `-D warnings` add `#[allow(clippy::manual_range_contains)]`\n\n"} {"$message_type":"diagnostic","message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 2 previous errors\u001b[0m\n\n"}