[ { "range": { "start": { "line": 70, "character": 39 }, "end": { "line": 70, "character": 44 } }, "severity": 2, "code": "unused_imports", "source": "rustc", "message": "unused imports: `color` and `set_a`\n`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 70, "character": 37 }, "end": { "line": 70, "character": 44 } } }, "message": "remove the unused imports" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused imports: `color` and `set_a`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:71:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m71\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use crate::text::{Diff, TextArea, col, color, is_word, set_a};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^\u001b[0m \u001b[1m\u001b[33m^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n" } }, { "range": { "start": { "line": 70, "character": 55 }, "end": { "line": 70, "character": 60 } }, "severity": 2, "code": "unused_imports", "source": "rustc", "message": "unused imports: `color` and `set_a`\n`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 70, "character": 37 }, "end": { "line": 70, "character": 44 } } }, "message": "remove the unused imports" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused imports: `color` and `set_a`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:71:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m71\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use crate::text::{Diff, TextArea, col, color, is_word, set_a};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^\u001b[0m \u001b[1m\u001b[33m^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n" } }, { "range": { "start": { "line": 1296, "character": 6 }, "end": { "line": 1296, "character": 7 } }, "severity": 2, "code": "unused_parens", "source": "rustc", "message": "unnecessary parentheses around type\n`#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1296, "character": 6 }, "end": { "line": 1296, "character": 7 } } }, "message": "remove these parentheses" } ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unnecessary parentheses around type\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1297:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(((usize, usize)) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default\n\u001b[1m\u001b[96mhelp\u001b[0m: remove these parentheses\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[91m- \u001b[0m C(\u001b[91m(\u001b[0m(usize, usize)\u001b[91m)\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[92m+ \u001b[0m C((usize, usize) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m\n\n" } }, { "range": { "start": { "line": 1296, "character": 21 }, "end": { "line": 1296, "character": 22 } }, "severity": 2, "code": "unused_parens", "source": "rustc", "message": "unnecessary parentheses around type\n`#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1296, "character": 6 }, "end": { "line": 1296, "character": 7 } } }, "message": "remove these parentheses" } ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unnecessary parentheses around type\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1297:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(((usize, usize)) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default\n\u001b[1m\u001b[96mhelp\u001b[0m: remove these parentheses\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[91m- \u001b[0m C(\u001b[91m(\u001b[0m(usize, usize)\u001b[91m)\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[92m+ \u001b[0m C((usize, usize) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m\n\n" } }, { "range": { "start": { "line": 606, "character": 32 }, "end": { "line": 606, "character": 36 } }, "severity": 2, "code": "unused_variables", "source": "rustc", "message": "unused variable: `diag`", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 606, "character": 32 }, "end": { "line": 606, "character": 36 } } }, "message": "if this is intentional, prefix it with an underscore: `_diag`" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `diag`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:607:33\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m607\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0m for diag in dawg {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_diag`\u001b[0m\n\n" } }, { "range": { "start": { "line": 1306, "character": 10 }, "end": { "line": 1306, "character": 11 } }, "severity": 2, "code": "unused_variables", "source": "rustc", "message": "unused variable: `x`", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1306, "character": 10 }, "end": { "line": 1306, "character": 11 } } }, "message": "if this is intentional, prefix it with an underscore: `_x`" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `x`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1307:11\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1307\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Selection(x) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_x`\u001b[0m\n\n" } }, { "range": { "start": { "line": 1334, "character": 8 }, "end": { "line": 1334, "character": 9 } }, "severity": 2, "code": "unused_variables", "source": "rustc", "message": "unused variable: `x`", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1334, "character": 8 }, "end": { "line": 1334, "character": 9 } } }, "message": "if this is intentional, prefix it with an underscore: `_x`" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `x`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1335:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Search((x, y, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_x`\u001b[0m\n\n" } }, { "range": { "start": { "line": 1334, "character": 11 }, "end": { "line": 1334, "character": 12 } }, "severity": 2, "code": "unused_variables", "source": "rustc", "message": "unused variable: `y`", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1334, "character": 11 }, "end": { "line": 1334, "character": 12 } } }, "message": "you might have meant to pattern match on the similarly named constant `N`: `com::N`" }, { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1334, "character": 11 }, "end": { "line": 1334, "character": 12 } } }, "message": "if this is intentional, prefix it with an underscore: `_y`" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `y`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1335:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Search((x, y, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: you might have meant to pattern match on the similarly named constant `N`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[91m- \u001b[0mSearch((x, \u001b[91my\u001b[0m, m)) => {\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[92m+ \u001b[0mSearch((x, \u001b[92mcom::N\u001b[0m, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: if this is intentional, prefix it with an underscore\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[1m\u001b[94m| \u001b[0mSearch((x, \u001b[92m_\u001b[0my, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m\n\n" } }, { "range": { "start": { "line": 1334, "character": 14 }, "end": { "line": 1334, "character": 15 } }, "severity": 2, "code": "unused_variables", "source": "rustc", "message": "unused variable: `m`", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1334, "character": 14 }, "end": { "line": 1334, "character": 15 } } }, "message": "you might have meant to pattern match on the similarly named constant `N`: `com::N`" }, { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1334, "character": 14 }, "end": { "line": 1334, "character": 15 } } }, "message": "if this is intentional, prefix it with an underscore: `_m`" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `m`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1335:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Search((x, y, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: you might have meant to pattern match on the similarly named constant `N`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[91m- \u001b[0mSearch((x, y, \u001b[91mm\u001b[0m)) => {\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[92m+ \u001b[0mSearch((x, y, \u001b[92mcom::N\u001b[0m)) => {\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: if this is intentional, prefix it with an underscore\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1335\u001b[0m \u001b[1m\u001b[94m| \u001b[0mSearch((x, y, \u001b[92m_\u001b[0mm)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m\n\n" } }, { "range": { "start": { "line": 1296, "character": 6 }, "end": { "line": 1296, "character": 22 } }, "severity": 2, "code": "dead_code", "source": "rustc", "message": "field `0` is never read\n`Action` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n`#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1336, "character": 4 }, "end": { "line": 1336, "character": 5 } } }, "message": "field in this variant" }, { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 1296, "character": 6 }, "end": { "line": 1296, "character": 22 } } }, "message": "consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field: `()`" } ], "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: field `0` is never read\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1297:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(((usize, usize)) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m1337\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(_) => Search((x, y, m)),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94mfield in this variant\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `Action` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default\n\u001b[1m\u001b[96mhelp\u001b[0m: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[91m- \u001b[0m C(\u001b[91m((usize, usize))\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n\u001b[1m\u001b[94m1297\u001b[0m \u001b[92m+ \u001b[0m C(\u001b[92m()\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m\n\n" } }, { "range": { "start": { "line": 1446, "character": 3 }, "end": { "line": 1446, "character": 15 } }, "severity": 2, "code": "dead_code", "source": "rustc", "message": "function `frunctinator` is never used", "tags": [ 1 ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: function `frunctinator` is never used\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1447:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1447\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn frunctinator(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^\u001b[0m\n\n" } }, { "range": { "start": { "line": 457, "character": 36 }, "end": { "line": 457, "character": 104 } }, "severity": 2, "code": "unused_must_use", "source": "rustc", "message": "unused `Result` that must be used\nthis `Result` may be an `Err` variant, which should be handled", "relatedInformation": [ { "location": { "uri": "file:///home/os/gracilaria/src/main.rs", "range": { "start": { "line": 457, "character": 36 }, "end": { "line": 457, "character": 36 } } }, "message": "use `let _ = ...` to ignore the resulting value: `let _ = `" } ], "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused `Result` that must be used\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:458:37\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m458\u001b[0m \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m...\u001b[0m std::fs::write(\"diag\", serde_json::to_string_pretty(&diag).unwrap());\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: this `Result` may be an `Err` variant, which should be handled\n\u001b[1m\u001b[96mhelp\u001b[0m: use `let _ = ...` to ignore the resulting value\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m458\u001b[0m \u001b[1m\u001b[94m| \u001b[0m \u001b[92mlet _ = \u001b[0mstd::fs::write(\"diag\", serde_json::to_string_pretty(&diag).unwrap());\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++++++\u001b[0m\n\n" } }, { "range": { "start": { "line": 1451, "character": 31 }, "end": { "line": 1451, "character": 41 } }, "severity": 2, "code": "path_statements", "source": "rustc", "message": "path statement with no effect\n`#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default", "data": { "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: path statement with no effect\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1452:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1452\u001b[0m \u001b[1m\u001b[94m|\u001b[0m lower::saturating::math! { parameter1 };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default\n\n" } } ]