Added extern functions #32
development.yml
on: push
Matrix: Test / Build & Test
Analyze
/
Format Code
Release
/
Create Pre Release
Release
/
Create Release Pull Request
Annotations
1 error and 266 warnings
Test / Build & Test (macos-11)
The run was canceled by @Yuri6037.
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused import: `crate::profiler::profiler_section_register`:
core/src/profiler/section.rs#L124
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
|
unused import: `std::num::NonZeroU32`:
core/src/profiler/section.rs#L128
warning: unused import: `std::num::NonZeroU32`
--> core/src/profiler/section.rs:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::profiler::section::Section`:
core/src/profiler/section.rs#L129
warning: unused import: `crate::profiler::section::Section`
--> core/src/profiler/section.rs:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
static `SECTION` is never used:
core/src/profiler/section.rs#L139
warning: static `SECTION` is never used
--> core/src/profiler/section.rs:139:16
|
139 | static SECTION: Section = Section::new("api_test", location!(), Level::Event);
| ^^^^^^^
|
static `SECTION2` is never used:
core/src/profiler/section.rs#L146
warning: static `SECTION2` is never used
--> core/src/profiler/section.rs:146:16
|
146 | static SECTION2: Section = Section::new("api_test2", location!(), Level::Event)
| ^^^^^^^^
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
Test / Build & Test (ubuntu-20.04)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
unused variable: `section`:
core\src\core\engine.rs#L40
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
|
unused variable: `id`:
core\src\core\engine.rs#L44
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`
|
unused variable: `start`:
core\src\core\engine.rs#L44
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`
|
unused variable: `end`:
core\src\core\engine.rs#L44
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L44
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L50
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L54
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L54
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`
|
unused variable: `id`:
core\src\core\engine.rs#L58
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`
|
unused variable: `id`:
core\src\core\engine.rs#L62
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L62
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`
|
unused variable: `id`:
core\src\core\engine.rs#L66
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L72
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`
|
unused variable: `msg`:
core\src\core\engine.rs#L72
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L72
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`
|
variant `None` is never constructed:
core\src\core\engine.rs#L35
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
|
fields `location` and `level` are never read:
core\src\logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core\src\trace\span.rs#L36
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,
| ^^^^^^^^
|
unused import: `crate::profiler::profiler_section_register`:
core\src\profiler\section.rs#L124
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
|
unused import: `std::num::NonZeroU32`:
core\src\profiler\section.rs#L128
warning: unused import: `std::num::NonZeroU32`
--> core\src\profiler\section.rs:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::profiler::section::Section`:
core\src\profiler\section.rs#L129
warning: unused import: `crate::profiler::section::Section`
--> core\src\profiler\section.rs:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `section`:
core\src\core\engine.rs#L40
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
|
unused variable: `id`:
core\src\core\engine.rs#L44
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`
|
unused variable: `start`:
core\src\core\engine.rs#L44
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`
|
unused variable: `end`:
core\src\core\engine.rs#L44
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L44
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L50
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L54
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L54
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`
|
unused variable: `id`:
core\src\core\engine.rs#L58
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`
|
unused variable: `id`:
core\src\core\engine.rs#L62
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L62
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`
|
unused variable: `id`:
core\src\core\engine.rs#L66
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L72
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`
|
unused variable: `msg`:
core\src\core\engine.rs#L72
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L72
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`
|
variant `None` is never constructed:
core\src\core\engine.rs#L35
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
|
static `SECTION` is never used:
core\src\profiler\section.rs#L139
warning: static `SECTION` is never used
--> core\src\profiler\section.rs:139:16
|
139 | static SECTION: Section = Section::new("api_test", location!(), Level::Event);
| ^^^^^^^
|
static `SECTION2` is never used:
core\src\profiler\section.rs#L146
warning: static `SECTION2` is never used
--> core\src\profiler\section.rs:146:16
|
146 | static SECTION2: Section = Section::new("api_test2", location!(), Level::Event)
| ^^^^^^^^
|
fields `location` and `level` are never read:
core\src\logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core\src\trace\span.rs#L36
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,
| ^^^^^^^^
|
Test / Build & Test (windows-2019)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused import: `crate::profiler::profiler_section_register`:
core/src/profiler/section.rs#L124
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
|
unused import: `std::num::NonZeroU32`:
core/src/profiler/section.rs#L128
warning: unused import: `std::num::NonZeroU32`
--> core/src/profiler/section.rs:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::profiler::section::Section`:
core/src/profiler/section.rs#L129
warning: unused import: `crate::profiler::section::Section`
--> core/src/profiler/section.rs:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
static `SECTION` is never used:
core/src/profiler/section.rs#L139
warning: static `SECTION` is never used
--> core/src/profiler/section.rs:139:16
|
139 | static SECTION: Section = Section::new("api_test", location!(), Level::Event);
| ^^^^^^^
|
static `SECTION2` is never used:
core/src/profiler/section.rs#L146
warning: static `SECTION2` is never used
--> core/src/profiler/section.rs:146:16
|
146 | static SECTION2: Section = Section::new("api_test2", location!(), Level::Event)
| ^^^^^^^^
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused import: `crate::profiler::profiler_section_register`:
core/src/profiler/section.rs#L124
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
|
unused import: `std::num::NonZeroU32`:
core/src/profiler/section.rs#L128
warning: unused import: `std::num::NonZeroU32`
--> core/src/profiler/section.rs:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::profiler::section::Section`:
core/src/profiler/section.rs#L129
warning: unused import: `crate::profiler::section::Section`
--> core/src/profiler/section.rs:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
static `SECTION` is never used:
core/src/profiler/section.rs#L139
warning: static `SECTION` is never used
--> core/src/profiler/section.rs:139:16
|
139 | static SECTION: Section = Section::new("api_test", location!(), Level::Event);
| ^^^^^^^
|
static `SECTION2` is never used:
core/src/profiler/section.rs#L146
warning: static `SECTION2` is never used
--> core/src/profiler/section.rs:146:16
|
146 | static SECTION2: Section = Section::new("api_test2", location!(), Level::Event)
| ^^^^^^^^
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused import: `crate::profiler::profiler_section_register`:
core/src/profiler/section.rs#L124
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
|
unused import: `std::num::NonZeroU32`:
core/src/profiler/section.rs#L128
warning: unused import: `std::num::NonZeroU32`
--> core/src/profiler/section.rs:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::profiler::section::Section`:
core/src/profiler/section.rs#L129
warning: unused import: `crate::profiler::section::Section`
--> core/src/profiler/section.rs:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
static `SECTION` is never used:
core/src/profiler/section.rs#L139
warning: static `SECTION` is never used
--> core/src/profiler/section.rs:139:16
|
139 | static SECTION: Section = Section::new("api_test", location!(), Level::Event);
| ^^^^^^^
|
static `SECTION2` is never used:
core/src/profiler/section.rs#L146
warning: static `SECTION2` is never used
--> core/src/profiler/section.rs:146:16
|
146 | static SECTION2: Section = Section::new("api_test2", location!(), Level::Event)
| ^^^^^^^^
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
unused variable: `section`:
core\src\core\engine.rs#L40
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
|
unused variable: `id`:
core\src\core\engine.rs#L44
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`
|
unused variable: `start`:
core\src\core\engine.rs#L44
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`
|
unused variable: `end`:
core\src\core\engine.rs#L44
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L44
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L50
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L54
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L54
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`
|
unused variable: `id`:
core\src\core\engine.rs#L58
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`
|
unused variable: `id`:
core\src\core\engine.rs#L62
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L62
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`
|
unused variable: `id`:
core\src\core\engine.rs#L66
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L72
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`
|
unused variable: `msg`:
core\src\core\engine.rs#L72
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L72
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`
|
variant `None` is never constructed:
core\src\core\engine.rs#L35
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
|
fields `location` and `level` are never read:
core\src\logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core\src\trace\span.rs#L36
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,
| ^^^^^^^^
|
unused import: `crate::profiler::profiler_section_register`:
core\src\profiler\section.rs#L124
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
|
unused import: `std::num::NonZeroU32`:
core\src\profiler\section.rs#L128
warning: unused import: `std::num::NonZeroU32`
--> core\src\profiler\section.rs:128:13
|
128 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::profiler::section::Section`:
core\src\profiler\section.rs#L129
warning: unused import: `crate::profiler::section::Section`
--> core\src\profiler\section.rs:129:13
|
129 | use crate::profiler::section::Section;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `section`:
core\src\core\engine.rs#L40
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
|
unused variable: `id`:
core\src\core\engine.rs#L44
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`
|
unused variable: `start`:
core\src\core\engine.rs#L44
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`
|
unused variable: `end`:
core\src\core\engine.rs#L44
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L44
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L50
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L54
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L54
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`
|
unused variable: `id`:
core\src\core\engine.rs#L58
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`
|
unused variable: `id`:
core\src\core\engine.rs#L62
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L62
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`
|
unused variable: `id`:
core\src\core\engine.rs#L66
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`
|
unused variable: `callsite`:
core\src\core\engine.rs#L72
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`
|
unused variable: `msg`:
core\src\core\engine.rs#L72
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`
|
unused variable: `fields`:
core\src\core\engine.rs#L72
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`
|
variant `None` is never constructed:
core\src\core\engine.rs#L35
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
|
static `SECTION` is never used:
core\src\profiler\section.rs#L139
warning: static `SECTION` is never used
--> core\src\profiler\section.rs:139:16
|
139 | static SECTION: Section = Section::new("api_test", location!(), Level::Event);
| ^^^^^^^
|
static `SECTION2` is never used:
core\src\profiler\section.rs#L146
warning: static `SECTION2` is never used
--> core\src\profiler\section.rs:146:16
|
146 | static SECTION2: Section = Section::new("api_test2", location!(), Level::Event)
| ^^^^^^^^
|
fields `location` and `level` are never read:
core\src\logger.rs#L34
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
| ^^^^^
|
fields `name` and `location` are never read:
core\src\trace\span.rs#L36
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,
| ^^^^^^^^
|
fields `name` and `location` are never read:
core/src/trace/span.rs#L36
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,
| ^^^^^^^^
|
fields `location` and `level` are never read:
core/src/logger.rs#L34
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
| ^^^^^
|
variant `None` is never constructed:
core/src/core/engine.rs#L35
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
|
unused variable: `fields`:
core/src/core/engine.rs#L72
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`
|
unused variable: `msg`:
core/src/core/engine.rs#L72
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L72
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`
|
unused variable: `id`:
core/src/core/engine.rs#L66
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L62
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`
|
unused variable: `id`:
core/src/core/engine.rs#L58
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L54
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L54
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`
|
unused variable: `callsite`:
core/src/core/engine.rs#L50
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`
|
unused variable: `fields`:
core/src/core/engine.rs#L44
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`
|
unused variable: `end`:
core/src/core/engine.rs#L44
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`
|
unused variable: `start`:
core/src/core/engine.rs#L44
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`
|
unused variable: `id`:
core/src/core/engine.rs#L44
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`
|
unused variable: `section`:
core/src/core/engine.rs#L40
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
|