Skip to content

Add rubicon 3.x support #2

Add rubicon 3.x support

Add rubicon 3.x support #2

GitHub Actions / clippy failed Jul 18, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
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 failure on line 462 in tracing-core/src/dispatcher.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

creating a shared reference to mutable static is discouraged

error: creating a shared reference to mutable static is discouraged
   --> tracing-core/src/dispatcher.rs:462:9
    |
462 |         &GLOBAL_DISPATCH
    |         ^^^^^^^^^^^^^^^^ shared reference to mutable static
    |
    = note: for more information, see issue #114447 <https://github.com/rust-lang/rust/issues/114447>
    = note: this will be a hard error in the 2024 edition
    = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior
    = note: `-D static-mut-refs` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(static_mut_refs)]`
help: use `addr_of!` instead to create a raw pointer
    |
462 |         addr_of!(GLOBAL_DISPATCH)
    |

Check failure on line 843 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
   --> tracing-core/src/field.rs:843:18
    |
843 |     pub fn field<Q: ?Sized>(&self, name: &Q) -> Option<Field>
    |                  ^
844 |     where
845 |         Q: Borrow<str>,
    |         ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
    = note: `-D clippy::multiple-bound-locations` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::multiple_bound_locations)]`