Added extern functions #32
cargo test (ubuntu-20.04)
There are 0 failures, 41 warnings, and 0 notice.
Details
Results
Compile result
Type | Count |
---|---|
error: internal compiler error | 0 |
error | 0 |
warning | 41 |
failure-note | 0 |
note | 0 |
help | 0 |
Test result
Name | Status |
---|---|
logger::tests::api_test | ok |
profiler::section::tests::basic | ok |
profiler::section::tests::api_test | ok |
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:30
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^ 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": 1940,
"byte_start": 1938,
"column_end": 32,
"column_start": 30,
"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": 32,
"highlight_start": 30,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]
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:46
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^^^^ 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": 1959,
"byte_start": 1954,
"column_end": 51,
"column_start": 46,
"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": 51,
"highlight_start": 46,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]
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:58
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^^ 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": 1969,
"byte_start": 1966,
"column_end": 61,
"column_start": 58,
"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": 61,
"highlight_start": 58,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]
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:68
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^^^^^ 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": 1982,
"byte_start": 1976,
"column_end": 74,
"column_start": 68,
"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": 74,
"highlight_start": 68,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]
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": 2101,
"byte_start": 2093,
"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:27
|
54 | fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> 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": 2195,
"byte_start": 2187,
"column_end": 35,
"column_start": 27,
"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": 35,
"highlight_start": 27,
"text": " fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> 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:49
|
54 | fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> 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": 2215,
"byte_start": 2209,
"column_end": 55,
"column_start": 49,
"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": 55,
"highlight_start": 49,
"text": " fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> 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": 2294,
"byte_start": 2292,
"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:27
|
62 | fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {
| ^^ 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": 2361,
"byte_start": 2359,
"column_end": 29,
"column_start": 27,
"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": 29,
"highlight_start": 27,
"text": " fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {"
}
]
}
]
}
]
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:43
|
62 | fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {
| ^^^^^^ 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": 2381,
"byte_start": 2375,
"column_end": 49,
"column_start": 43,
"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": 49,
"highlight_start": 43,
"text": " fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {"
}
]
}
]
}
]
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": 2445,
"byte_start": 2443,
"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:19
|
72 | fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {
| ^^^^^^^^ 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": 2552,
"byte_start": 2544,
"column_end": 27,
"column_start": 19,
"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": 27,
"highlight_start": 19,
"text": " fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {"
}
]
}
]
}
]
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:63
|
72 | fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {
| ^^^ 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": 2591,
"byte_start": 2588,
"column_end": 66,
"column_start": 63,
"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": 66,
"highlight_start": 63,
"text": " fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {"
}
]
}
]
}
]
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:79
|
72 | fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {
| ^^^^^^ 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": 2610,
"byte_start": 2604,
"column_end": 85,
"column_start": 79,
"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": 85,
"highlight_start": 79,
"text": " fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {"
}
]
}
]
}
]
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 124 in core/src/profiler/section.rs
github-actions / cargo test (ubuntu-20.04)
unused import: `crate::profiler::profiler_section_register`
warning: unused import: `crate::profiler::profiler_section_register`
--> core/src/profiler/section.rs:124:9
|
124 | use crate::profiler::profiler_section_register;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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": 3803,
"byte_start": 3756,
"column_end": 52,
"column_start": 5,
"expansion": null,
"file_name": "core/src/profiler/section.rs",
"is_primary": true,
"label": null,
"line_end": 124,
"line_start": 124,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"text": [
{
"highlight_end": 52,
"highlight_start": 5,
"text": " use crate::profiler::profiler_section_register;"
}
]
}
]
}
]
Check warning on line 128 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:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "remove the whole `use` item",
"rendered": null,
"spans": [
{
"byte_end": 3909,
"byte_start": 3884,
"column_end": 34,
"column_start": 9,
"expansion": null,
"file_name": "core/src/profiler/section.rs",
"is_primary": true,
"label": null,
"line_end": 128,
"line_start": 128,
"suggested_replacement": "",
"suggestion_applicability": "MachineApplicable",
"text": [
{
"highlight_end": 34,
"highlight_start": 9,
"text": " use std::num::NonZeroU32;"
}
]
}
]
}
]
Check warning on line 129 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:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Raw output
[
{
"children": [],
"code": null,
"level": "help",
"message": "remove the whole `use` item",
"rendered": null,
"spans": [
{
"byte_end": 3956,
"byte_start": 3918,
"column_end": 47,
"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": 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:30
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^ 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": 1940,
"byte_start": 1938,
"column_end": 32,
"column_start": 30,
"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": 32,
"highlight_start": 30,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]
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:46
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^^^^ 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": 1959,
"byte_start": 1954,
"column_end": 51,
"column_start": 46,
"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": 51,
"highlight_start": 46,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]
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:58
|
44 | fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
| ^^^ 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": 1969,
"byte_start": 1966,
"column_end": 61,
"column_start": 58,
"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": 61,
"highlight_start": 58,
"text": " fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
}
]
}
]
}
]