[INFO] fetching crate tracing_storage_logger 0.1.16... [INFO] checking tracing_storage_logger-0.1.16 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate tracing_storage_logger 0.1.16 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate tracing_storage_logger 0.1.16 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tracing_storage_logger 0.1.16 [INFO] finished tweaking crates.io crate tracing_storage_logger 0.1.16 [INFO] tweaked toml for crates.io crate tracing_storage_logger 0.1.16 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate tracing_storage_logger 0.1.16 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded readme v0.1.0 [INFO] [stderr] Downloaded string-builder v0.2.0 [INFO] [stderr] Downloaded serde v1.0.142 [INFO] [stderr] Downloaded file-rotate v0.7.0 [INFO] [stderr] Downloaded parse-zoneinfo v0.1.1 [INFO] [stderr] Downloaded ucd-util v0.1.9 [INFO] [stderr] Downloaded chrono v0.4.20 [INFO] [stderr] Downloaded chrono-tz v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 108ce965a301bf3d527bad5f2cd5d723f99be00957239abcda6b8359c2ca9eeb [INFO] running `Command { std: "docker" "start" "-a" "108ce965a301bf3d527bad5f2cd5d723f99be00957239abcda6b8359c2ca9eeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "108ce965a301bf3d527bad5f2cd5d723f99be00957239abcda6b8359c2ca9eeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "108ce965a301bf3d527bad5f2cd5d723f99be00957239abcda6b8359c2ca9eeb", kill_on_drop: false }` [INFO] [stdout] 108ce965a301bf3d527bad5f2cd5d723f99be00957239abcda6b8359c2ca9eeb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e77004beeb54b3cee25fecb877382362b70c5a0253aa7f5439ba06e38b17449 [INFO] running `Command { std: "docker" "start" "-a" "9e77004beeb54b3cee25fecb877382362b70c5a0253aa7f5439ba06e38b17449", kill_on_drop: false }` [INFO] [stderr] warning: tracing_storage_logger v0.1.16 (/opt/rustwide/workdir) ignoring invalid dependency `readme` which is missing a lib target [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling ucd-util v0.1.9 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde v1.0.142 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking string-builder v0.2.0 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking tracing-subscriber v0.3.15 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.20 [INFO] [stderr] Checking file-rotate v0.7.0 [INFO] [stderr] Compiling parse-zoneinfo v0.1.1 [INFO] [stderr] Compiling chrono-tz v0.4.1 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Checking tracing_storage_logger v0.1.16 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Subscriber`, `debug_span`, `error`, `info_span`, `info`, `instrument`, `warn` [INFO] [stdout] --> src/logger.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub use tracing::{debug_span, error, info, info_span, instrument, warn, Subscriber}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Subscriber`, `debug_span`, `error`, `info_span`, `info`, `instrument`, `warn` [INFO] [stdout] --> src/logger.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub use tracing::{debug_span, error, info, info_span, instrument, warn, Subscriber}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logger` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let logger = Logger::new( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logger.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Logger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/logger.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Logger { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(path: PathBuf, limit: ContentLimit, max_files: usize, time_zone: Tz) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_files` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct CustomLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub max_files: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_span_path` is never used [INFO] [stdout] --> src/custom_layer/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 221 | impl CustomLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 222 | pub fn get_span_path() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logger` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let logger = Logger::new( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logger.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Logger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/logger.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Logger { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(path: PathBuf, limit: ContentLimit, max_files: usize, time_zone: Tz) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_files` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct CustomLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub max_files: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_span_path` is never used [INFO] [stdout] --> src/custom_layer/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 221 | impl CustomLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 222 | pub fn get_span_path() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.38s [INFO] running `Command { std: "docker" "inspect" "9e77004beeb54b3cee25fecb877382362b70c5a0253aa7f5439ba06e38b17449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e77004beeb54b3cee25fecb877382362b70c5a0253aa7f5439ba06e38b17449", kill_on_drop: false }` [INFO] [stdout] 9e77004beeb54b3cee25fecb877382362b70c5a0253aa7f5439ba06e38b17449 [INFO] checking tracing_storage_logger-0.1.16 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] extracting crate tracing_storage_logger 0.1.16 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate tracing_storage_logger 0.1.16 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tracing_storage_logger 0.1.16 [INFO] finished tweaking crates.io crate tracing_storage_logger 0.1.16 [INFO] tweaked toml for crates.io crate tracing_storage_logger 0.1.16 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate tracing_storage_logger 0.1.16 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf184cf308035e91546bec729c18e7fcb152dd3b9f882d83afe4d0c17a8cfe62 [INFO] running `Command { std: "docker" "start" "-a" "bf184cf308035e91546bec729c18e7fcb152dd3b9f882d83afe4d0c17a8cfe62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf184cf308035e91546bec729c18e7fcb152dd3b9f882d83afe4d0c17a8cfe62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf184cf308035e91546bec729c18e7fcb152dd3b9f882d83afe4d0c17a8cfe62", kill_on_drop: false }` [INFO] [stdout] bf184cf308035e91546bec729c18e7fcb152dd3b9f882d83afe4d0c17a8cfe62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9ba3acf6d0dfd830816bf62e0d83d2201142fc030e4317f582a59fda952eee9 [INFO] running `Command { std: "docker" "start" "-a" "a9ba3acf6d0dfd830816bf62e0d83d2201142fc030e4317f582a59fda952eee9", kill_on_drop: false }` [INFO] [stderr] warning: tracing_storage_logger v0.1.16 (/opt/rustwide/workdir) ignoring invalid dependency `readme` which is missing a lib target [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ucd-util v0.1.9 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling serde v1.0.142 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking string-builder v0.2.0 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking tracing-subscriber v0.3.15 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.20 [INFO] [stderr] Compiling parse-zoneinfo v0.1.1 [INFO] [stderr] Checking file-rotate v0.7.0 [INFO] [stderr] Compiling chrono-tz v0.4.1 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Checking tracing_storage_logger v0.1.16 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Subscriber`, `debug_span`, `error`, `info_span`, `info`, `instrument`, `warn` [INFO] [stdout] --> src/logger.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub use tracing::{debug_span, error, info, info_span, instrument, warn, Subscriber}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Subscriber`, `debug_span`, `error`, `info_span`, `info`, `instrument`, `warn` [INFO] [stdout] --> src/logger.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub use tracing::{debug_span, error, info, info_span, instrument, warn, Subscriber}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Layer` [INFO] [stdout] --> src/logger.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing_subscriber::{fmt::Layer, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::US::Eastern` [INFO] [stdout] --> src/custom_layer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono_tz::US::Eastern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `suffix::AppendCount` [INFO] [stdout] --> src/custom_layer/mod.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/custom_layer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/custom_layer/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | use tracing_subscriber::registry::{Scope, SpanRef}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Extensions` [INFO] [stdout] --> src/custom_layer/mod.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::{registry::Extensions, Layer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logger` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let logger = Logger::new( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logger.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Logger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/logger.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Logger { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(path: PathBuf, limit: ContentLimit, max_files: usize, time_zone: Tz) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_files` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct CustomLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub max_files: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_span_path` is never used [INFO] [stdout] --> src/custom_layer/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 221 | impl CustomLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 222 | pub fn get_span_path() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/custom_layer/mod.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attrs` [INFO] [stdout] --> src/custom_layer/mod.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | attrs: &tracing::span::Attributes<'_>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut visitor = JsonVisitor(&mut fields); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spans` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let mut spans = Vec::>::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/custom_layer/mod.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let output = serde_json::json!({ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/custom_layer/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let mut parse_me = value.to_string(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logger` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let logger = Logger::new( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logger.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Logger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/logger.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Logger { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(path: PathBuf, limit: ContentLimit, max_files: usize, time_zone: Tz) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_files` is never read [INFO] [stdout] --> src/custom_layer/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct CustomLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub max_files: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_span_path` is never used [INFO] [stdout] --> src/custom_layer/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 221 | impl CustomLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 222 | pub fn get_span_path() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | writeln!(log, "{indent}[{name}]"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/custom_layer/mod.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | writeln!(&mut log, "{}{}", indent, value.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | write!( w, "{b}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | writeln!(w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | write!( w, "{n}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | write!( w, "{s}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | writeln!( w, ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | write!( w, "{start_indent}{indent_str}{key}:\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/write_json.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | write!( w, "{start_indent}{indent_str}{key}: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.13s [INFO] running `Command { std: "docker" "inspect" "a9ba3acf6d0dfd830816bf62e0d83d2201142fc030e4317f582a59fda952eee9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9ba3acf6d0dfd830816bf62e0d83d2201142fc030e4317f582a59fda952eee9", kill_on_drop: false }` [INFO] [stdout] a9ba3acf6d0dfd830816bf62e0d83d2201142fc030e4317f582a59fda952eee9