configure ci #1
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (12)
crates/sblex-telemetry/src/telemetry.rs|19 col 15| warning: unused import: info
--> crates/sblex-telemetry/src/telemetry.rs:19:15
|
19 | use tracing::{info, Subscriber};
| ^^^^
|
= note: #[warn(unused_imports)]
on by default
crates/sblex-telemetry/src/telemetry.rs|22 col 45| warning: unused import: layer::SubscriberExt
--> crates/sblex-telemetry/src/telemetry.rs:22:45
|
22 | use tracing_subscriber::{filter::EnvFilter, layer::SubscriberExt, registry::LookupSpan, Layer};
| ^^^^^^^^^^^^^^^^^^^^
crates/sblex/src/trie.rs|1 col 5| warning: unused import: std::collections::BTreeMap
--> crates/sblex/src/trie.rs:1:5
|
1 | use std::collections::BTreeMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
crates/sblex-server/src/startup.rs|6 col 34| warning: use of deprecated function axum_tracing_opentelemetry::opentelemetry_tracing_layer
: keep for transition, replaced by OtelAxumLayer
--> crates/sblex-server/src/startup.rs:6:34
|
6 | use axum_tracing_opentelemetry::{opentelemetry_tracing_layer, response_with_trace_layer};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)]
on by default
crates/sblex-server/src/startup.rs|6 col 63| warning: use of deprecated function axum_tracing_opentelemetry::response_with_trace_layer
: keep for transition, replaced by OtelInResponseLayer
--> crates/sblex-server/src/startup.rs:6:63
|
6 | use axum_tracing_opentelemetry::{opentelemetry_tracing_layer, response_with_trace_layer};
| ^^^^^^^^^^^^^^^^^^^^^^^^^
crates/sblex-server/src/startup.rs|14 col 16| warning: use of deprecated function axum_tracing_opentelemetry::response_with_trace_layer
: keep for transition, replaced by OtelInResponseLayer
--> crates/sblex-server/src/startup.rs:14:16
|
14 | .layer(response_with_trace_layer())
| ^^^^^^^^^^^^^^^^^^^^^^^^^
crates/sblex-server/src/startup.rs|17 col 16| warning: use of deprecated function axum_tracing_opentelemetry::opentelemetry_tracing_layer
: keep for transition, replaced by OtelAxumLayer
--> crates/sblex-server/src/startup.rs:17:16
|
17 | .layer(opentelemetry_tracing_layer())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
crates/fm-server/src/cli/options.rs|1 col 5| warning: unused import: std::path::PathBuf
--> crates/fm-server/src/cli/options.rs:1:5
|
1 | use std::path::PathBuf;
| ^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
crates/fm-server/src/server.rs|5 col 46| warning: unused imports: OtelAxumLayer
, OtelInResponseLayer
--> crates/fm-server/src/server.rs:5:46
|
5 | use axum_tracing_opentelemetry::middleware::{OtelAxumLayer, OtelInResponseLayer};
| ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
crates/fm-server/src/server.rs|13 col 5| warning: unused import: tower_http::trace::TraceLayer
--> crates/fm-server/src/server.rs:13:5
|
13 | use tower_http::trace::TraceLayer;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
crates/fm-server/src/server.rs|40 col 4| warning: function make_span
is never used
--> crates/fm-server/src/server.rs:40:4
|
40 | fn make_span(request: &Request) -> Span {
| ^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
crates/fm-server/src/server/morph.rs|17 col 35| warning: use of default
to create a unit struct
--> crates/fm-server/src/server/morph.rs:17:35
|
17 | .layer(OtelInResponseLayer::default())
| ^^^^^^^^^^^ help: remove this call to default
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
= note: #[warn(clippy::default_constructed_unit_structs)]
on by default