[INFO] cloning repository https://github.com/bhatti/db-locks [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bhatti/db-locks" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhatti%2Fdb-locks", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhatti%2Fdb-locks'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e72a9aa07be2f254e3be2b6f46e46cadc9422ba [INFO] checking bhatti/db-locks against master#18a6d911caba59605eb03db1452848a85d2e5879 for pr-112743 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhatti%2Fdb-locks" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bhatti/db-locks on toolchain 18a6d911caba59605eb03db1452848a85d2e5879 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bhatti/db-locks [INFO] finished tweaking git repo https://github.com/bhatti/db-locks [INFO] tweaked toml for git repo https://github.com/bhatti/db-locks written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bhatti/db-locks 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" "+18a6d911caba59605eb03db1452848a85d2e5879" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/awslabs/aws-sdk-rust` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap_derive v4.0.8 [INFO] [stderr] Downloaded uuid-macro-internal v1.1.2 [INFO] [stderr] Downloaded redis v0.21.6 [INFO] [stderr] Downloaded prometheus v0.13.2 [INFO] [stderr] Downloaded clap v4.0.8 [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e668e22067229933d24b301ae63c4e2912e5d3d6ab7a47a12850f93ed64cd14 [INFO] running `Command { std: "docker" "start" "-a" "5e668e22067229933d24b301ae63c4e2912e5d3d6ab7a47a12850f93ed64cd14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e668e22067229933d24b301ae63c4e2912e5d3d6ab7a47a12850f93ed64cd14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e668e22067229933d24b301ae63c4e2912e5d3d6ab7a47a12850f93ed64cd14", kill_on_drop: false }` [INFO] [stdout] 5e668e22067229933d24b301ae63c4e2912e5d3d6ab7a47a12850f93ed64cd14 [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6222ca1b21cff7405ce44ae9641db6be563fa0f57038b77fbe2d392e817b2fd3 [INFO] running `Command { std: "docker" "start" "-a" "6222ca1b21cff7405ce44ae9641db6be563fa0f57038b77fbe2d392e817b2fd3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Checking once_cell v1.13.1 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling tokio v1.21.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking time v0.3.14 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling semver v1.0.13 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking bytes-utils v0.1.3 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.76 [INFO] [stderr] Checking zeroize v1.5.7 [INFO] [stderr] Checking aws-smithy-types v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.42 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling aws-types v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking scheduled-thread-pool v0.2.6 [INFO] [stderr] Compiling pq-sys v0.4.7 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling libsqlite3-sys v0.25.1 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking aws-smithy-json v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Checking iana-time-zone v0.1.47 [INFO] [stderr] Compiling thiserror v1.0.35 [INFO] [stderr] Checking urlencoding v2.1.2 [INFO] [stderr] Checking xmlparser v0.13.3 [INFO] [stderr] Compiling protobuf v2.27.1 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking ct-logs v0.8.0 [INFO] [stderr] Checking aws-smithy-query v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking aws-smithy-xml v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking sha1_smol v1.0.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling prometheus v0.13.2 [INFO] [stderr] Checking os_str_bytes v6.3.0 [INFO] [stderr] Checking sha1 v0.6.1 [INFO] [stderr] Checking combine v4.6.6 [INFO] [stderr] Checking unsafe-libyaml v0.2.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking clap_lex v0.3.0 [INFO] [stderr] Checking url v2.3.0 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking gethostname v0.2.3 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking rustls-native-certs v0.5.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling diesel_derives v2.0.0 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Compiling thiserror-impl v1.0.35 [INFO] [stderr] Compiling uuid-macro-internal v1.1.2 [INFO] [stderr] Compiling clap_derive v4.0.8 [INFO] [stderr] Checking futures-executor v0.3.24 [INFO] [stderr] Checking futures v0.3.24 [INFO] [stderr] Checking uuid v1.1.2 [INFO] [stderr] Compiling async-recursion v1.0.0 [INFO] [stderr] Checking tokio-util v0.7.4 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-stream v0.1.9 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking redis v0.21.6 [INFO] [stderr] Checking aws-smithy-async v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Checking clap v4.0.8 [INFO] [stderr] Checking diesel v1.4.8 [INFO] [stderr] Checking chrono v0.4.22 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking serde_yaml v0.9.13 [INFO] [stderr] Checking migrations_internals v2.0.0 [INFO] [stderr] Checking diesel v2.0.0 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Compiling migrations_macros v2.0.0 [INFO] [stderr] Checking aws-smithy-http v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking aws-smithy-http-tower v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-sigv4 v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-smithy-client v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking r2d2-diesel v1.0.0 [INFO] [stderr] Checking aws-sig-auth v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-endpoint v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-http v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-sdk-sso v0.18.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-sdk-sts v0.18.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-sdk-dynamodb v0.18.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking aws-config v0.48.0 (https://github.com/awslabs/aws-sdk-rust?branch=main#a58ba1a2) [INFO] [stderr] Checking diesel_migrations v2.0.0 [INFO] [stderr] Checking db-locks v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_HEARTBEAT_PERIOD` is never used [INFO] [stdout] --> src/domain/models.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_HEARTBEAT_PERIOD: i64 = 5000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_lease_duration_millis`, `with_lease_duration_secs`, `with_lease_duration_minutes`, and `with_fair_semaphore` are never used [INFO] [stdout] --> src/domain/models.rs:498:12 [INFO] [stdout] | [INFO] [stdout] 472 | impl SemaphoreBuilder { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn with_lease_duration_millis(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 503 | pub fn with_lease_duration_secs(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 508 | pub fn with_lease_duration_minutes(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn with_fair_semaphore(&mut self, fair_semaphore: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/domain/models.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 570 | impl LocksConfig { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 571 | pub fn new(tenant_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 595 | pub fn should_run_database_migrations(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 599 | pub fn is_cache_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | pub fn get_database_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 611 | pub fn get_database_pool_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn get_max_semaphore_size(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 619 | pub fn get_heartbeat_period_ms(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 623 | pub fn get_mutexes_table_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | pub fn get_redis_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 631 | pub fn get_semaphores_table_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 635 | pub fn get_aws_region(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 639 | pub fn has_ddb_read_consistency(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/domain/options.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl AcquireLockOptionsBuilder { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 187 | pub fn new(key: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn build(&self) -> AcquireLockOptions { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn with_lease_duration_millis(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn with_lease_duration_secs(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn with_lease_duration_minutes(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn with_data(&mut self, data: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn with_opt_semaphore_max_size(&mut self, max_size: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn with_opt_data(&mut self, data: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn with_replace_data(&mut self, replace_data: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn with_delete_on_release(&mut self, delete_on_release: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn with_reentrant(&mut self, reentrant: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn with_acquire_only_if_already_exists(&mut self, acquire_only_if_already_exists: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn with_refresh_period_ms(&mut self, refresh_period_ms: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn with_additional_time_to_wait_for_lock_ms(&mut self, additional_time_to_wait_for_lock_ms: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn with_override_time_to_wait_for_lock_ms(&mut self, override_time_to_wait_for_lock_ms: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn with_semaphore_max_size(&mut self, semaphore_max_size: i32) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/domain/options.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 365 | impl ReleaseLockOptionsBuilder { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 366 | pub fn new(key: &str, version: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 376 | pub fn build(&self) -> ReleaseLockOptions { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn with_delete_lock(&mut self, delete_lock: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn with_semaphore_key(&mut self, semaphore_key: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn with_opt_semaphore_key(&mut self, semaphore_key: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 401 | pub fn with_data(&mut self, data: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | pub fn with_opt_data(&mut self, data: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/domain/options.rs:516:12 [INFO] [stdout] | [INFO] [stdout] 515 | impl SendHeartbeatOptionsBuilder { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] 516 | pub fn new(key: &str, version: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn build(&self) -> SendHeartbeatOptions { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 538 | pub fn with_delete_data(&mut self, delete_data: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 543 | pub fn with_lease_duration_millis(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 548 | pub fn with_lease_duration_secs(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 553 | pub fn with_lease_duration_minutes(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 558 | pub fn with_semaphore_key(&mut self, semaphore_key: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 563 | pub fn with_opt_semaphore_key(&mut self, semaphore_key: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 568 | pub fn with_data(&mut self, data: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 573 | pub fn with_opt_data(&mut self, data: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 223 | impl RetryableMutexRepository { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 224 | fn new(config: &LocksConfig, delegate: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository.rs:321:8 [INFO] [stdout] | [INFO] [stdout] 320 | impl RetryableFairSemaphoreRepository { [INFO] [stdout] | ------------------------------------- associated function in this implementation [INFO] [stdout] 321 | fn new(config: &LocksConfig, delegate: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 408 | impl RetryableSemaphoreRepository { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 409 | fn new(config: &LocksConfig, delegate: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider` is never read [INFO] [stdout] --> src/repository.rs:469:5 [INFO] [stdout] | [INFO] [stdout] 468 | pub(crate) struct MeasurableMutexRepository { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 469 | provider: RepositoryProvider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `metrics_summary`, and `dump_metrics` are never used [INFO] [stdout] --> src/repository.rs:475:8 [INFO] [stdout] | [INFO] [stdout] 474 | impl MeasurableMutexRepository { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 475 | fn new(provider: RepositoryProvider, delegate: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | fn metrics_summary(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | fn dump_metrics(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `provider` and `mutex_repository` are never read [INFO] [stdout] --> src/repository.rs:573:5 [INFO] [stdout] | [INFO] [stdout] 572 | pub(crate) struct MeasurableSemaphoreRepository { [INFO] [stdout] | ----------------------------- fields in this struct [INFO] [stdout] 573 | provider: RepositoryProvider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 574 | delegate: Box, [INFO] [stdout] 575 | mutex_repository: MeasurableMutexRepository, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `metrics_summary`, and `dump_metrics` are never used [INFO] [stdout] --> src/repository.rs:580:8 [INFO] [stdout] | [INFO] [stdout] 579 | impl MeasurableSemaphoreRepository { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 580 | fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 593 | fn metrics_summary(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 604 | fn dump_metrics(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_mutex_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn build_mutex_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_semaphore_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn build_semaphore_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_fair_semaphore_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | pub async fn build_fair_semaphore_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_measurable_mutex_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) async fn build_measurable_mutex_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_measurable_semaphore_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) async fn build_measurable_semaphore_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_pg_pool` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn build_pg_pool(config: &LocksConfig) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_migrations` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn run_migrations(conn: &mut PgConnection) -> LockResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_sqlite_pool` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:83:15 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) fn build_sqlite_pool(config: &LocksConfig) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_sqlite_connection` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn build_sqlite_connection(database_url: &str) -> ConnectionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/orm_mutex_repository.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl OrmMutexRepository { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 20 | pub(crate) fn new(pool: pool_decl!()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/orm_semaphore_repository.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl OrmSemaphoreRepository { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 21 | pub(crate) fn new(pool: pool_decl!(), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/ddb_mutex_repository.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl DdbMutexRepository { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 20 | #[allow(clippy::new_ret_no_self)] [INFO] [stdout] 21 | pub(crate) fn new(config: &LocksConfig, sdk_config: &SdkConfig) -> LockResult> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/ddb_semaphore_repository.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl DdbSemaphoreRepository { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 20 | #[allow(clippy::new_ret_no_self)] [INFO] [stdout] 21 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/redis_mutex_repository.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 16 | impl RedisMutexRepository { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 17 | #[allow(clippy::new_ret_no_self)] [INFO] [stdout] 18 | pub(crate) fn new(config: &LocksConfig) -> LockResult> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/redis_semaphore_repository.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 16 | impl RedisSemaphoreRepository { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 17 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/redis_fair_semaphore_repository.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl RedisFairSemaphoreRepository { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 18 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/manager/lock_manager.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl LockManagerImpl { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/store/default_lock_store.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl DefaultLockStore { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `count_cached_mutexes_semaphore_keys`, and `count_all_cached_mutexes_by_semaphore_key` are never used [INFO] [stdout] --> src/store/lock_cache.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl LockCache { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(cache_enabled: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn count_cached_mutexes_semaphore_keys(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_all_cached_mutexes_by_semaphore_key(&self, semaphore_key: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/store/fair_lock_store.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl FairLockStore { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elapsed` is never used [INFO] [stdout] --> src/utils/lock_metrics.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'a> LockMetric<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, `get_request_total`, and `dump` are never used [INFO] [stdout] --> src/utils/lock_metrics.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl LockMetrics { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn register(&self, registry: &Registry) -> Result<(), prometheus::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn get_request_total(&self, method: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub(crate) fn dump(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_pg_pool` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn build_pg_pool(config: &LocksConfig) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_migrations` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn run_migrations(conn: &mut PgConnection) -> LockResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elapsed` is never used [INFO] [stdout] --> src/utils/lock_metrics.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'a> LockMetric<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_HEARTBEAT_PERIOD` is never used [INFO] [stdout] --> src/domain/models.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_HEARTBEAT_PERIOD: i64 = 5000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_lease_duration_millis`, `with_lease_duration_minutes`, and `with_fair_semaphore` are never used [INFO] [stdout] --> src/domain/models.rs:498:12 [INFO] [stdout] | [INFO] [stdout] 472 | impl SemaphoreBuilder { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn with_lease_duration_millis(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 508 | pub fn with_lease_duration_minutes(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn with_fair_semaphore(&mut self, fair_semaphore: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_heartbeat_period_ms` is never used [INFO] [stdout] --> src/domain/models.rs:619:12 [INFO] [stdout] | [INFO] [stdout] 570 | impl LocksConfig { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 619 | pub fn get_heartbeat_period_ms(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/domain/options.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl AcquireLockOptionsBuilder { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn with_lease_duration_millis(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn with_lease_duration_minutes(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn with_data(&mut self, data: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn with_opt_semaphore_max_size(&mut self, max_size: &Option) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn with_replace_data(&mut self, replace_data: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn with_delete_on_release(&mut self, delete_on_release: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn with_reentrant(&mut self, reentrant: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn with_acquire_only_if_already_exists(&mut self, acquire_only_if_already_exists: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn with_refresh_period_ms(&mut self, refresh_period_ms: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn with_additional_time_to_wait_for_lock_ms(&mut self, additional_time_to_wait_for_lock_ms: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn with_override_time_to_wait_for_lock_ms(&mut self, override_time_to_wait_for_lock_ms: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_delete_lock`, `with_semaphore_key`, and `with_data` are never used [INFO] [stdout] --> src/domain/options.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 365 | impl ReleaseLockOptionsBuilder { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn with_delete_lock(&mut self, delete_lock: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn with_semaphore_key(&mut self, semaphore_key: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 401 | pub fn with_data(&mut self, data: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_delete_data`, `with_lease_duration_millis`, `with_lease_duration_minutes`, `with_semaphore_key`, and `with_data` are never used [INFO] [stdout] --> src/domain/options.rs:538:12 [INFO] [stdout] | [INFO] [stdout] 515 | impl SendHeartbeatOptionsBuilder { [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 538 | pub fn with_delete_data(&mut self, delete_data: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 543 | pub fn with_lease_duration_millis(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 553 | pub fn with_lease_duration_minutes(&mut self, val: i64) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 558 | pub fn with_semaphore_key(&mut self, semaphore_key: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 568 | pub fn with_data(&mut self, data: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider` is never read [INFO] [stdout] --> src/repository.rs:469:5 [INFO] [stdout] | [INFO] [stdout] 468 | pub(crate) struct MeasurableMutexRepository { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 469 | provider: RepositoryProvider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `metrics_summary`, and `dump_metrics` are never used [INFO] [stdout] --> src/repository.rs:475:8 [INFO] [stdout] | [INFO] [stdout] 474 | impl MeasurableMutexRepository { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 475 | fn new(provider: RepositoryProvider, delegate: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | fn metrics_summary(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | fn dump_metrics(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `provider` and `mutex_repository` are never read [INFO] [stdout] --> src/repository.rs:573:5 [INFO] [stdout] | [INFO] [stdout] 572 | pub(crate) struct MeasurableSemaphoreRepository { [INFO] [stdout] | ----------------------------- fields in this struct [INFO] [stdout] 573 | provider: RepositoryProvider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 574 | delegate: Box, [INFO] [stdout] 575 | mutex_repository: MeasurableMutexRepository, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `metrics_summary`, and `dump_metrics` are never used [INFO] [stdout] --> src/repository.rs:580:8 [INFO] [stdout] | [INFO] [stdout] 579 | impl MeasurableSemaphoreRepository { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 580 | fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 593 | fn metrics_summary(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 604 | fn dump_metrics(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_measurable_mutex_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) async fn build_measurable_mutex_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_measurable_semaphore_repository` is never used [INFO] [stdout] --> src/repository/factory.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) async fn build_measurable_semaphore_repository( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_pg_pool` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn build_pg_pool(config: &LocksConfig) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_migrations` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn run_migrations(conn: &mut PgConnection) -> LockResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `count_cached_mutexes_semaphore_keys` and `count_all_cached_mutexes_by_semaphore_key` are never used [INFO] [stdout] --> src/store/lock_cache.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl LockCache { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn count_cached_mutexes_semaphore_keys(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_all_cached_mutexes_by_semaphore_key(&self, semaphore_key: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elapsed` is never used [INFO] [stdout] --> src/utils/lock_metrics.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'a> LockMetric<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_request_total` and `dump` are never used [INFO] [stdout] --> src/utils/lock_metrics.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 58 | impl LockMetrics { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn get_request_total(&self, method: &str) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub(crate) fn dump(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_pg_pool` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn build_pg_pool(config: &LocksConfig) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_migrations` is never used [INFO] [stdout] --> src/repository/rdb_common.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn run_migrations(conn: &mut PgConnection) -> LockResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `elapsed` is never used [INFO] [stdout] --> src/utils/lock_metrics.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'a> LockMetric<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 45s [INFO] running `Command { std: "docker" "inspect" "6222ca1b21cff7405ce44ae9641db6be563fa0f57038b77fbe2d392e817b2fd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6222ca1b21cff7405ce44ae9641db6be563fa0f57038b77fbe2d392e817b2fd3", kill_on_drop: false }` [INFO] [stdout] 6222ca1b21cff7405ce44ae9641db6be563fa0f57038b77fbe2d392e817b2fd3