[INFO] cloning repository https://github.com/era/guardian_bell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/era/guardian_bell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fera%2Fguardian_bell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fera%2Fguardian_bell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51e5deb94aea3364b96c4503592669d1eecf2256 [INFO] checking era/guardian_bell against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fera%2Fguardian_bell" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/era/guardian_bell [INFO] finished tweaking git repo https://github.com/era/guardian_bell [INFO] tweaked toml for git repo https://github.com/era/guardian_bell written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/era/guardian_bell on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/era/guardian_bell 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded temp-dir v0.1.13 [INFO] [stderr] Downloaded tracing-appender v0.2.3 [INFO] [stderr] Downloaded prost-build v0.12.4 [INFO] [stderr] Downloaded prettyplease v0.2.19 [INFO] [stderr] Downloaded prost-types v0.12.4 [INFO] [stderr] Downloaded tonic-health v0.11.0 [INFO] [stderr] Downloaded prost v0.12.4 [INFO] [stderr] Downloaded prost-derive v0.12.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1bf8132a956508158f7c673c0031dde4e346bfdc1a59befcc0d1f047231bc8de [INFO] running `Command { std: "docker" "start" "-a" "1bf8132a956508158f7c673c0031dde4e346bfdc1a59befcc0d1f047231bc8de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1bf8132a956508158f7c673c0031dde4e346bfdc1a59befcc0d1f047231bc8de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bf8132a956508158f7c673c0031dde4e346bfdc1a59befcc0d1f047231bc8de", kill_on_drop: false }` [INFO] [stdout] 1bf8132a956508158f7c673c0031dde4e346bfdc1a59befcc0d1f047231bc8de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7fa14bf408a343e067fff4548a3f6a2bd30c5191a6a00e4c449f4cc6a3ddcb79 [INFO] running `Command { std: "docker" "start" "-a" "7fa14bf408a343e067fff4548a3f6a2bd30c5191a6a00e4c449f4cc6a3ddcb79", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling prettyplease v0.2.19 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking temp-dir v0.1.13 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling prost-derive v0.12.4 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking thiserror v1.0.59 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Compiling prost v0.12.4 [INFO] [stderr] Compiling prost-types v0.12.4 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Compiling prost-build v0.12.4 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Compiling guardian_bell v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stderr] Checking tonic-health v0.11.0 [INFO] [stdout] warning: unused import: `alarm::CombinationAlarmConfig` [INFO] [stdout] --> src/alarm/alarm.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | alarm::Aggregation, alarm::CombinationAlarmConfig, alarm::LogicalOperator, alarm::Matcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/wal/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, Error as StdIOError, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alarm::CombinationAlarmConfig` [INFO] [stdout] --> src/alarm/alarm.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | alarm::Aggregation, alarm::CombinationAlarmConfig, alarm::LogicalOperator, alarm::Matcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/wal/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, Error as StdIOError, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/alarm/alarm.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn notify(&self, description: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/alarm/alarm.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn notify(&self, description: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/alarm/service.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut alarm_service = AlarmService::new( [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/alarm/service.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | for i in 0..number_of_metrics { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/alarm/alarm.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) trait Alarm { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn tick(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Notifier` is never used [INFO] [stdout] --> src/alarm/alarm.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Notifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoOpNotifier` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct NoOpNotifier {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CombinationAlarmLogicalOperator` is never used [INFO] [stdout] --> src/alarm/alarm.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type CombinationAlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct CombinationAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPointAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DataPointAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add`, `delete`, and `tick` are never used [INFO] [stdout] --> src/alarm/service.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AlarmService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | fn add(&mut self, alarm: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn delete(&mut self, alarm_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn tick(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricsData` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-9edb37022fa0a58f/out/opentelemetry.proto.metrics.v1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MetricsData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownCause` is never constructed [INFO] [stdout] --> src/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ShutdownError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | #[error("unkown cause {0}")] [INFO] [stdout] 6 | UnknownCause(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShutdownError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CorruptedLogFile` is never constructed [INFO] [stdout] --> src/wal/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | CorruptedLogFile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/wal/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct Log { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Alarm` is never used [INFO] [stdout] --> src/alarm/alarm.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) trait Alarm { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Notifier` is never used [INFO] [stdout] --> src/alarm/alarm.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Notifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoOpNotifier` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct NoOpNotifier {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CombinationAlarmLogicalOperator` is never used [INFO] [stdout] --> src/alarm/alarm.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type CombinationAlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct CombinationAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPointAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DataPointAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/alarm/service.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlarmService` is never constructed [INFO] [stdout] --> src/alarm/service.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AlarmService { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/alarm/service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `delete`, `consume`, `tick`, and `recover` are never used [INFO] [stdout] --> src/alarm/service.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AlarmService { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 29 | fn new(config: Config, alarms: Vec>) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn add(&mut self, alarm: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn delete(&mut self, alarm_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn consume(&mut self, metric: metrics::Metric, recover_mode: bool) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn tick(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn recover(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricsData` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-9edb37022fa0a58f/out/opentelemetry.proto.metrics.v1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MetricsData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownCause` is never constructed [INFO] [stdout] --> src/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ShutdownError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | #[error("unkown cause {0}")] [INFO] [stdout] 6 | UnknownCause(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShutdownError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/wal/mod.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Log` is never constructed [INFO] [stdout] --> src/wal/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Log { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `read`, and `len` are never used [INFO] [stdout] --> src/wal/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Log { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 28 | fn new(file_name: PathBuf, name: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn write(&mut self, data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn read(&mut self, offset: u64, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WAL` is never constructed [INFO] [stdout] --> src/wal/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct WAL { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/wal/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/wal/mod.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 78 | impl WAL { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 79 | const LOG_PREFIX: &'static str = "log_page_"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 80 | [INFO] [stdout] 81 | pub fn new(config: Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn create_log(mut path: PathBuf, page: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn find_logs(path: &PathBuf) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn write(&mut self, data: &[u8]) -> Result<(usize, usize), Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn read(&mut self, page: usize, offset: u64, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn last_page(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn curr_page_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_empty_wal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tonic_health::pb::health_check_response::ServingStatus::from_i32`: Use the TryFrom implementation instead [INFO] [stdout] --> tests/grpc.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | ServingStatus::from_i32(response.status).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `tonic_health::pb::health_check_response::ServingStatus::from_i32`: Use the TryFrom implementation instead [INFO] [stdout] --> tests/grpc.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | ServingStatus::from_i32(response.status).unwrap() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alarm::CombinationAlarmConfig` [INFO] [stdout] --> src/alarm/alarm.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | alarm::Aggregation, alarm::CombinationAlarmConfig, alarm::LogicalOperator, alarm::Matcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/wal/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, Error as StdIOError, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alarm::CombinationAlarmConfig` [INFO] [stdout] --> src/alarm/alarm.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | alarm::Aggregation, alarm::CombinationAlarmConfig, alarm::LogicalOperator, alarm::Matcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/wal/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, Error as StdIOError, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/alarm/alarm.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn notify(&self, description: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/alarm/alarm.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn notify(&self, description: String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/alarm/service.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut alarm_service = AlarmService::new( [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/alarm/service.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | for i in 0..number_of_metrics { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metric` [INFO] [stdout] --> src/model/alarm.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | fn metric_matches(&self, metric: &Metric) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metric` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Alarm` is never used [INFO] [stdout] --> src/alarm/alarm.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) trait Alarm { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Notifier` is never used [INFO] [stdout] --> src/alarm/alarm.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Notifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoOpNotifier` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct NoOpNotifier {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CombinationAlarmLogicalOperator` is never used [INFO] [stdout] --> src/alarm/alarm.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type CombinationAlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct CombinationAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPointAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DataPointAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/alarm/service.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlarmService` is never constructed [INFO] [stdout] --> src/alarm/service.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AlarmService { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/alarm/service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `delete`, `consume`, `tick`, and `recover` are never used [INFO] [stdout] --> src/alarm/service.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AlarmService { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 29 | fn new(config: Config, alarms: Vec>) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn add(&mut self, alarm: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn delete(&mut self, alarm_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn consume(&mut self, metric: metrics::Metric, recover_mode: bool) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn tick(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn recover(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricsData` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-9edb37022fa0a58f/out/opentelemetry.proto.metrics.v1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MetricsData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AlarmConfig` is never used [INFO] [stdout] --> src/model/alarm.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AlarmConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TagBasedAlarmConfig` is never constructed [INFO] [stdout] --> src/model/alarm.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TagBasedAlarmConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarmConfig` is never constructed [INFO] [stdout] --> src/model/alarm.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CombinationAlarmConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AlarmLogicalOperator` is never used [INFO] [stdout] --> src/model/alarm.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | pub type AlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogicalOperator` is never used [INFO] [stdout] --> src/model/alarm.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum LogicalOperator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ThresholdType` is never used [INFO] [stdout] --> src/model/alarm.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum ThresholdType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Match` is never constructed [INFO] [stdout] --> src/model/alarm.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Match { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatchType` is never used [INFO] [stdout] --> src/model/alarm.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum MatchType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Aggregation` is never used [INFO] [stdout] --> src/model/alarm.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum Aggregation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Matcher` is never used [INFO] [stdout] --> src/model/alarm.rs:78:11 [INFO] [stdout] | [INFO] [stdout] 78 | pub trait Matcher { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metric` is never constructed [INFO] [stdout] --> src/model/metrics.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Metric { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MetricData` is never used [INFO] [stdout] --> src/model/metrics.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum MetricData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPoint` is never constructed [INFO] [stdout] --> src/model/metrics.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct DataPoint { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HistogramDataPoint` is never constructed [INFO] [stdout] --> src/model/metrics.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct HistogramDataPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AggregationTemporality` is never used [INFO] [stdout] --> src/model/metrics.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum AggregationTemporality { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownCause` is never constructed [INFO] [stdout] --> src/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ShutdownError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | #[error("unkown cause {0}")] [INFO] [stdout] 6 | UnknownCause(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShutdownError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/wal/mod.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Log` is never constructed [INFO] [stdout] --> src/wal/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Log { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `read`, and `len` are never used [INFO] [stdout] --> src/wal/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Log { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 28 | fn new(file_name: PathBuf, name: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn write(&mut self, data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn read(&mut self, offset: u64, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn len(&self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WAL` is never constructed [INFO] [stdout] --> src/wal/mod.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct WAL { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/wal/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/wal/mod.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 78 | impl WAL { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 79 | const LOG_PREFIX: &'static str = "log_page_"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 80 | [INFO] [stdout] 81 | pub fn new(config: Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn create_log(mut path: PathBuf, page: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn find_logs(path: &PathBuf) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn write(&mut self, data: &[u8]) -> Result<(usize, usize), Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn read(&mut self, page: usize, offset: u64, buf: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn last_page(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn curr_page_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn is_empty_wal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/alarm/alarm.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) trait Alarm { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn tick(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Notifier` is never used [INFO] [stdout] --> src/alarm/alarm.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait Notifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NoOpNotifier` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct NoOpNotifier {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CombinationAlarmLogicalOperator` is never used [INFO] [stdout] --> src/alarm/alarm.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type CombinationAlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct CombinationAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataPointAlarm` is never constructed [INFO] [stdout] --> src/alarm/alarm.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DataPointAlarm { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add`, `delete`, and `tick` are never used [INFO] [stdout] --> src/alarm/service.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl AlarmService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | fn add(&mut self, alarm: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn delete(&mut self, alarm_id: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn tick(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricsData` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/guardian_bell-9edb37022fa0a58f/out/opentelemetry.proto.metrics.v1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MetricsData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AlarmConfig` is never used [INFO] [stdout] --> src/model/alarm.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AlarmConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TagBasedAlarmConfig` is never constructed [INFO] [stdout] --> src/model/alarm.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TagBasedAlarmConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CombinationAlarmConfig` is never constructed [INFO] [stdout] --> src/model/alarm.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CombinationAlarmConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AlarmLogicalOperator` is never used [INFO] [stdout] --> src/model/alarm.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | pub type AlarmLogicalOperator = LogicalOperator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogicalOperator` is never used [INFO] [stdout] --> src/model/alarm.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum LogicalOperator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ThresholdType` is never used [INFO] [stdout] --> src/model/alarm.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum ThresholdType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Match` is never constructed [INFO] [stdout] --> src/model/alarm.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Match { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatchType` is never used [INFO] [stdout] --> src/model/alarm.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum MatchType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Aggregation` is never used [INFO] [stdout] --> src/model/alarm.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum Aggregation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Matcher` is never used [INFO] [stdout] --> src/model/alarm.rs:78:11 [INFO] [stdout] | [INFO] [stdout] 78 | pub trait Matcher { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownCause` is never constructed [INFO] [stdout] --> src/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ShutdownError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | #[error("unkown cause {0}")] [INFO] [stdout] 6 | UnknownCause(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShutdownError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CorruptedLogFile` is never constructed [INFO] [stdout] --> src/wal/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | CorruptedLogFile, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/wal/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct Log { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "7fa14bf408a343e067fff4548a3f6a2bd30c5191a6a00e4c449f4cc6a3ddcb79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fa14bf408a343e067fff4548a3f6a2bd30c5191a6a00e4c449f4cc6a3ddcb79", kill_on_drop: false }` [INFO] [stdout] 7fa14bf408a343e067fff4548a3f6a2bd30c5191a6a00e4c449f4cc6a3ddcb79