Renamed job names #31
cargo test (ubuntu-20.04)
There are 0 failures, 39 warnings, and 0 notice.
Details
Results
Compile result
Type | Count |
---|---|
error: internal compiler error | 0 |
error | 0 |
warning | 39 |
failure-note | 0 |
note | 0 |
help | 0 |
Annotations
Check warning on line 40 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `section`
warning: unused variable: `section`
--> core/src/core/engine.rs:40:32
|
40 | fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_section`
|
= note: `#[warn(unused_variables)]` on by default
Raw output
[
{
"children": [],
"code": null,
"level": "note",
"message": "`#[warn(unused_variables)]` on by default",
"rendered": null,
"spans": []
},
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1824,
"byte_start": 1817,
"column_end": 39,
"column_start": 32,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 40,
"line_start": 40,
"suggested_replacement": "_section",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 39,
"highlight_start": 32,
"text": " fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `id`
warning: unused variable: `id`
--> core/src/core/engine.rs:44:43
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1953,
"byte_start": 1951,
"column_end": 45,
"column_start": 43,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_id",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 45,
"highlight_start": 43,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `start`
warning: unused variable: `start`
--> core/src/core/engine.rs:44:59
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1972,
"byte_start": 1967,
"column_end": 64,
"column_start": 59,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_start",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 64,
"highlight_start": 59,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `end`
warning: unused variable: `end`
--> core/src/core/engine.rs:44:71
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_end`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1982,
"byte_start": 1979,
"column_end": 74,
"column_start": 71,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_end",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 74,
"highlight_start": 71,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `fields`
warning: unused variable: `fields`
--> core/src/core/engine.rs:44:81
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1995,
"byte_start": 1989,
"column_end": 87,
"column_start": 81,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_fields",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 87,
"highlight_start": 81,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 50 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `callsite`
warning: unused variable: `callsite`
--> core/src/core/engine.rs:50:33
|
50 | fn register_callsite(&self, callsite: &'static Callsite) -> NonZeroU32 {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callsite`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2107,
"byte_start": 2099,
"column_end": 41,
"column_start": 33,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 50,
"line_start": 50,
"suggested_replacement": "_callsite",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 41,
"highlight_start": 33,
"text": " fn register_callsite(&self, callsite: &'static Callsite) -> NonZeroU32 {"
}
]
}
]
}
]
Check warning on line 54 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `callsite`
warning: unused variable: `callsite`
--> core/src/core/engine.rs:54:40
|
54 | fn span_create<F: FieldSet>(&self, callsite: NonZeroU32, fields: &F) -> NonZeroU32 {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callsite`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2214,
"byte_start": 2206,
"column_end": 48,
"column_start": 40,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 54,
"line_start": 54,
"suggested_replacement": "_callsite",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 48,
"highlight_start": 40,
"text": " fn span_create<F: FieldSet>(&self, callsite: NonZeroU32, fields: &F) -> NonZeroU32 {"
}
]
}
]
}
]
Check warning on line 54 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `fields`
warning: unused variable: `fields`
--> core/src/core/engine.rs:54:62
|
54 | fn span_create<F: FieldSet>(&self, callsite: NonZeroU32, fields: &F) -> NonZeroU32 {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2234,
"byte_start": 2228,
"column_end": 68,
"column_start": 62,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 54,
"line_start": 54,
"suggested_replacement": "_fields",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 68,
"highlight_start": 62,
"text": " fn span_create<F: FieldSet>(&self, callsite: NonZeroU32, fields: &F) -> NonZeroU32 {"
}
]
}
]
}
]
Check warning on line 58 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `id`
warning: unused variable: `id`
--> core/src/core/engine.rs:58:26
|
58 | fn span_enter(&self, id: NonZeroU32) {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2306,
"byte_start": 2304,
"column_end": 28,
"column_start": 26,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 58,
"line_start": 58,
"suggested_replacement": "_id",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 28,
"highlight_start": 26,
"text": " fn span_enter(&self, id: NonZeroU32) {"
}
]
}
]
}
]
Check warning on line 62 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `id`
warning: unused variable: `id`
--> core/src/core/engine.rs:62:40
|
62 | fn span_record<F: FieldSet>(&self, id: NonZeroU32, fields: &F) {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2386,
"byte_start": 2384,
"column_end": 42,
"column_start": 40,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 62,
"line_start": 62,
"suggested_replacement": "_id",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 42,
"highlight_start": 40,
"text": " fn span_record<F: FieldSet>(&self, id: NonZeroU32, fields: &F) {"
}
]
}
]
}
]
Check warning on line 62 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `fields`
warning: unused variable: `fields`
--> core/src/core/engine.rs:62:56
|
62 | fn span_record<F: FieldSet>(&self, id: NonZeroU32, fields: &F) {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2406,
"byte_start": 2400,
"column_end": 62,
"column_start": 56,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 62,
"line_start": 62,
"suggested_replacement": "_fields",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 62,
"highlight_start": 56,
"text": " fn span_record<F: FieldSet>(&self, id: NonZeroU32, fields: &F) {"
}
]
}
]
}
]
Check warning on line 66 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `id`
warning: unused variable: `id`
--> core/src/core/engine.rs:66:25
|
66 | fn span_exit(&self, id: NonZeroU32) {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2463,
"byte_start": 2461,
"column_end": 27,
"column_start": 25,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 66,
"line_start": 66,
"suggested_replacement": "_id",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 27,
"highlight_start": 25,
"text": " fn span_exit(&self, id: NonZeroU32) {"
}
]
}
]
}
]
Check warning on line 72 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `callsite`
warning: unused variable: `callsite`
--> core/src/core/engine.rs:72:32
|
72 | fn log<F: FieldSet>(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &F) {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callsite`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2583,
"byte_start": 2575,
"column_end": 40,
"column_start": 32,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 72,
"line_start": 72,
"suggested_replacement": "_callsite",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 40,
"highlight_start": 32,
"text": " fn log<F: FieldSet>(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &F) {"
}
]
}
]
}
]
Check warning on line 72 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `msg`
warning: unused variable: `msg`
--> core/src/core/engine.rs:72:76
|
72 | fn log<F: FieldSet>(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &F) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2622,
"byte_start": 2619,
"column_end": 79,
"column_start": 76,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 72,
"line_start": 72,
"suggested_replacement": "_msg",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 79,
"highlight_start": 76,
"text": " fn log<F: FieldSet>(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &F) {"
}
]
}
]
}
]
Check warning on line 72 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `fields`
warning: unused variable: `fields`
--> core/src/core/engine.rs:72:92
|
72 | fn log<F: FieldSet>(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &F) {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 2641,
"byte_start": 2635,
"column_end": 98,
"column_start": 92,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 72,
"line_start": 72,
"suggested_replacement": "_fields",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 98,
"highlight_start": 92,
"text": " fn log<F: FieldSet>(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &F) {"
}
]
}
]
}
]
Check warning on line 35 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
variant `None` is never constructed
warning: variant `None` is never constructed
--> core/src/core/engine.rs:35:5
|
34 | pub enum Engine {
| ------ variant in this enum
35 | None,
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
Raw output
[
{
"children": [],
"code": null,
"level": "note",
"message": "`#[warn(dead_code)]` on by default",
"rendered": null,
"spans": []
}
]
Check warning on line 34 in core/src/logger.rs
github-actions / cargo test (ubuntu-20.04)
fields `location` and `level` are never read
warning: fields `location` and `level` are never read
--> core/src/logger.rs:34:5
|
33 | pub struct Callsite {
| -------- fields in this struct
34 | location: Location,
| ^^^^^^^^
35 | level: Level
| ^^^^^
Raw output
[]
Check warning on line 36 in core/src/trace/span.rs
github-actions / cargo test (ubuntu-20.04)
fields `name` and `location` are never read
warning: fields `name` and `location` are never read
--> core/src/trace/span.rs:36:5
|
35 | pub struct Callsite {
| -------- fields in this struct
36 | name: &'static str,
| ^^^^
37 | location: Location,
| ^^^^^^^^
Raw output
[]
Check warning on line 129 in core/src/profiler/section.rs
github-actions / cargo test (ubuntu-20.04)
unused import: `std::num::NonZeroU32`
warning: unused import: `std::num::NonZeroU32`
--> core/src/profiler/section.rs:129:13
|
129 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw output
[
{
"children": [],
"code": null,
"level": "note",
"message": "`#[warn(unused_imports)]` on by default",
"rendered": null,
"spans": []
},
{
"children": [],
"code": null,
"level": "help",
"message": "remove the whole `use` item",
"rendered": null,
"spans": [
{
"byte_end": 3937,
"byte_start": 3912,
"column_end": 34,
"column_start": 9,
"expansion": null,
"file_name": "core/src/profiler/section.rs",
"is_primary": true,
"label": null,
"line_end": 129,
"line_start": 129,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"text": [
{
"highlight_end": 34,
"highlight_start": 9,
"text": " use std::num::NonZeroU32;"
}
]
}
]
}
]
Check warning on line 130 in core/src/profiler/section.rs
github-actions / cargo test (ubuntu-20.04)
unused import: `crate::profiler::section::Section`
warning: unused import: `crate::profiler::section::Section`
--> core/src/profiler/section.rs:130:13
|
130 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "remove the whole `use` item",
"rendered": null,
"spans": [
{
"byte_end": 3984,
"byte_start": 3946,
"column_end": 47,
"column_start": 9,
"expansion": null,
"file_name": "core/src/profiler/section.rs",
"is_primary": true,
"label": null,
"line_end": 130,
"line_start": 130,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"text": [
{
"highlight_end": 47,
"highlight_start": 9,
"text": " use crate::profiler::section::Section;"
}
]
}
]
}
]
Check warning on line 40 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `section`
warning: unused variable: `section`
--> core/src/core/engine.rs:40:32
|
40 | fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_section`
|
= note: `#[warn(unused_variables)]` on by default
Raw output
[
{
"children": [],
"code": null,
"level": "note",
"message": "`#[warn(unused_variables)]` on by default",
"rendered": null,
"spans": []
},
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1824,
"byte_start": 1817,
"column_end": 39,
"column_start": 32,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 40,
"line_start": 40,
"suggested_replacement": "_section",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 39,
"highlight_start": 32,
"text": " fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `id`
warning: unused variable: `id`
--> core/src/core/engine.rs:44:43
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1953,
"byte_start": 1951,
"column_end": 45,
"column_start": 43,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_id",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 45,
"highlight_start": 43,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `start`
warning: unused variable: `start`
--> core/src/core/engine.rs:44:59
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1972,
"byte_start": 1967,
"column_end": 64,
"column_start": 59,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_start",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 64,
"highlight_start": 59,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `end`
warning: unused variable: `end`
--> core/src/core/engine.rs:44:71
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_end`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1982,
"byte_start": 1979,
"column_end": 74,
"column_start": 71,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_end",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 74,
"highlight_start": 71,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]
Check warning on line 44 in core/src/core/engine.rs
github-actions / cargo test (ubuntu-20.04)
unused variable: `fields`
warning: unused variable: `fields`
--> core/src/core/engine.rs:44:81
|
44 | fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "if this is intentional, prefix it with an underscore",
"rendered": null,
"spans": [
{
"byte_end": 1995,
"byte_start": 1989,
"column_end": 87,
"column_start": 81,
"expansion": null,
"file_name": "core/src/core/engine.rs",
"is_primary": true,
"label": null,
"line_end": 44,
"line_start": 44,
"suggested_replacement": "_fields",
"suggestion_applicability": "MaybeIncorrect",
"text": [
{
"highlight_end": 87,
"highlight_start": 81,
"text": " fn section_record<F: FieldSet>(&self, id: NonZeroU32, start: u64, end: u64, fields: &F) {"
}
]
}
]
}
]