|
| 1 | +{ |
| 2 | + "message": "unused imports: `HashMap`, `VecDeque`", |
| 3 | + "code": { |
| 4 | + "code": "unused_imports", |
| 5 | + "explanation": null |
| 6 | + }, |
| 7 | + "level": "warning", |
| 8 | + "spans": [ |
| 9 | + { |
| 10 | + "file_name": "src/main.rs", |
| 11 | + "byte_start": 23, |
| 12 | + "byte_end": 30, |
| 13 | + "line_start": 1, |
| 14 | + "line_end": 1, |
| 15 | + "column_start": 24, |
| 16 | + "column_end": 31, |
| 17 | + "is_primary": true, |
| 18 | + "text": [ |
| 19 | + { |
| 20 | + "text": "use std::collections::{HashMap, HashSet, VecDeque};", |
| 21 | + "highlight_start": 24, |
| 22 | + "highlight_end": 31 |
| 23 | + } |
| 24 | + ], |
| 25 | + "label": null, |
| 26 | + "suggested_replacement": null, |
| 27 | + "suggestion_applicability": null, |
| 28 | + "expansion": null |
| 29 | + }, |
| 30 | + { |
| 31 | + "file_name": "src/main.rs", |
| 32 | + "byte_start": 41, |
| 33 | + "byte_end": 49, |
| 34 | + "line_start": 1, |
| 35 | + "line_end": 1, |
| 36 | + "column_start": 42, |
| 37 | + "column_end": 50, |
| 38 | + "is_primary": true, |
| 39 | + "text": [ |
| 40 | + { |
| 41 | + "text": "use std::collections::{HashMap, HashSet, VecDeque};", |
| 42 | + "highlight_start": 42, |
| 43 | + "highlight_end": 50 |
| 44 | + } |
| 45 | + ], |
| 46 | + "label": null, |
| 47 | + "suggested_replacement": null, |
| 48 | + "suggestion_applicability": null, |
| 49 | + "expansion": null |
| 50 | + } |
| 51 | + ], |
| 52 | + "children": [ |
| 53 | + { |
| 54 | + "message": "#[warn(unused_imports)] on by default", |
| 55 | + "code": null, |
| 56 | + "level": "note", |
| 57 | + "spans": [], |
| 58 | + "children": [], |
| 59 | + "rendered": null |
| 60 | + }, |
| 61 | + { |
| 62 | + "message": "remove the unused imports", |
| 63 | + "code": null, |
| 64 | + "level": "help", |
| 65 | + "spans": [ |
| 66 | + { |
| 67 | + "file_name": "src/main.rs", |
| 68 | + "byte_start": 23, |
| 69 | + "byte_end": 32, |
| 70 | + "line_start": 1, |
| 71 | + "line_end": 1, |
| 72 | + "column_start": 24, |
| 73 | + "column_end": 33, |
| 74 | + "is_primary": true, |
| 75 | + "text": [ |
| 76 | + { |
| 77 | + "text": "use std::collections::{HashMap, HashSet, VecDeque};", |
| 78 | + "highlight_start": 24, |
| 79 | + "highlight_end": 33 |
| 80 | + } |
| 81 | + ], |
| 82 | + "label": null, |
| 83 | + "suggested_replacement": "", |
| 84 | + "suggestion_applicability": "MachineApplicable", |
| 85 | + "expansion": null |
| 86 | + }, |
| 87 | + { |
| 88 | + "file_name": "src/main.rs", |
| 89 | + "byte_start": 39, |
| 90 | + "byte_end": 49, |
| 91 | + "line_start": 1, |
| 92 | + "line_end": 1, |
| 93 | + "column_start": 40, |
| 94 | + "column_end": 50, |
| 95 | + "is_primary": true, |
| 96 | + "text": [ |
| 97 | + { |
| 98 | + "text": "use std::collections::{HashMap, HashSet, VecDeque};", |
| 99 | + "highlight_start": 40, |
| 100 | + "highlight_end": 50 |
| 101 | + } |
| 102 | + ], |
| 103 | + "label": null, |
| 104 | + "suggested_replacement": "", |
| 105 | + "suggestion_applicability": "MachineApplicable", |
| 106 | + "expansion": null |
| 107 | + } |
| 108 | + ], |
| 109 | + "children": [], |
| 110 | + "rendered": null |
| 111 | + } |
| 112 | + ], |
| 113 | + "rendered": "warning: unused imports: `HashMap`, `VecDeque`\n --> src/main.rs:1:24\n |\n1 | use std::collections::{HashMap, HashSet, VecDeque};\n | ^^^^^^^ ^^^^^^^^\n |\n = note: #[warn(unused_imports)] on by default\nhelp: remove the unused imports\n |\n1 | use std::collections::{HashSet};\n | -- --\n\n" |
| 114 | +} |
0 commit comments