Skip to content

Added extern functions #32

Added extern functions

Added extern functions #32

GitHub Actions / clippy succeeded Jul 13, 2024 in 0s

clippy

18 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 18
Note 0
Help 0

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check warning on line 36 in core/src/trace/span.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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,
   |     ^^^^^^^^

Check warning on line 34 in core/src/logger.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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
   |     ^^^^^

Check warning on line 35 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

Check warning on line 72 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 72 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 72 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 66 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 62 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 62 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 58 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 54 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 54 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 50 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 44 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 44 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 44 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 44 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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`

Check warning on line 40 in core/src/core/engine.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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