Skip to content

feat(builder): Add tokio feature, which can be omitted #58

feat(builder): Add tokio feature, which can be omitted

feat(builder): Add tokio feature, which can be omitted #58

GitHub Actions / clippy failed Jan 29, 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.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check failure on line 317 in src/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unreachable call

error: unreachable call
   --> src/builder.rs:317:14
    |
317 |             .with_exporter({
    |              ^^^^^^^^^^^^^ unreachable call
...
324 |                 return exporter.with_http_client(reqwest::Client::new());
    |                 -------------------------------------------------------- any code following this expression is unreachable
    |
note: the lint level is defined here
   --> src/lib.rs:1:9
    |
1   | #![deny(warnings)]
    |         ^^^^^^^^
    = note: `#[deny(unreachable_code)]` implied by `#[deny(warnings)]`

Check failure on line 324 in src/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> src/builder.rs:324:24
    |
324 |                 return exporter.with_http_client(reqwest::Client::new());
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Tracer, Error>`, found `HttpExporterBuilder`
    |
    = note: expected enum `std::result::Result<opentelemetry::sdk::trace::Tracer, error::Error>`
             found struct `opentelemetry_otlp::HttpExporterBuilder`