[INFO] cloning repository https://github.com/carlosb1/p2p-poc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/carlosb1/p2p-poc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosb1%2Fp2p-poc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosb1%2Fp2p-poc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9632b26e72c0efc550dd92398fd0b4c9ca189352 [INFO] checking carlosb1/p2p-poc against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosb1%2Fp2p-poc" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/carlosb1/p2p-poc [INFO] finished tweaking git repo https://github.com/carlosb1/p2p-poc [INFO] tweaked toml for git repo https://github.com/carlosb1/p2p-poc written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/carlosb1/p2p-poc on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/carlosb1/p2p-poc 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-3-tc2/source/messages-p2p/Cargo.toml: unused manifest key: test-dependencies [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4baf4124b1e2367a576668c2276912b6a9711bd87a801ac127040ec3e166588 [INFO] running `Command { std: "docker" "start" "-a" "b4baf4124b1e2367a576668c2276912b6a9711bd87a801ac127040ec3e166588", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4baf4124b1e2367a576668c2276912b6a9711bd87a801ac127040ec3e166588", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4baf4124b1e2367a576668c2276912b6a9711bd87a801ac127040ec3e166588", kill_on_drop: false }` [INFO] [stdout] b4baf4124b1e2367a576668c2276912b6a9711bd87a801ac127040ec3e166588 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 84bcb2c59ffd3815ded80be864a53d50b0526e4a7245b2f09359336565ebda8b [INFO] running `Command { std: "docker" "start" "-a" "84bcb2c59ffd3815ded80be864a53d50b0526e4a7245b2f09359336565ebda8b", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/messages-p2p/Cargo.toml: unused manifest key: test-dependencies [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling cc v1.2.23 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking hashbrown v0.15.3 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking unsigned-varint v0.8.0 [INFO] [stderr] Checking quick-protobuf v0.8.1 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking base-x v0.2.11 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking unsigned-varint v0.7.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking multihash v0.19.3 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling portable-atomic v1.11.0 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling moka v0.12.10 [INFO] [stderr] Checking resolv-conf v0.7.4 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling prometheus-client v0.22.3 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Checking uint v0.10.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rustls v0.23.27 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking hex_fmt v0.3.0 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling target-lexicon v0.13.2 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking jiff v0.2.14 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking messages-types v0.1.0 (/opt/rustwide/workdir/messages-types) [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking toml_write v0.1.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking winnow v0.7.10 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Compiling pyo3-build-config v0.25.1 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling convert_case v0.8.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking unindent v0.2.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Checking iso8601 v0.6.3 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tokio v1.45.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.16 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking data-encoding-macro v0.1.18 [INFO] [stderr] Compiling libp2p-swarm-derive v0.35.0 [INFO] [stderr] Checking multibase v0.9.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Checking netlink-packet-utils v0.5.2 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking netlink-packet-core v0.7.0 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking netlink-packet-route v0.17.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking webpki-roots v1.0.0 [INFO] [stderr] Checking tungstenite v0.26.2 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling pyo3-ffi v0.25.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.25.1 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking x25519-dalek v2.0.1 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling structmeta-derive v0.3.0 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling pyo3 v0.25.1 [INFO] [stderr] Checking libp2p-identity v0.2.11 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Checking rustls-webpki v0.103.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking asynchronous-codec v0.7.0 [INFO] [stderr] Checking futures-bounded v0.2.4 [INFO] [stderr] Compiling structmeta v0.3.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking quick-protobuf-codec v0.3.1 [INFO] [stderr] Checking multistream-select v0.13.0 [INFO] [stderr] Checking rw-stream-sink v0.4.0 [INFO] [stderr] Checking yamux v0.12.1 [INFO] [stderr] Checking yamux v0.13.5 [INFO] [stderr] Compiling meilisearch-index-setting-macro v0.29.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.5 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking netlink-sys v0.8.7 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-tungstenite v0.26.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking netlink-proto v0.11.5 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking rtnetlink v0.13.1 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hickory-proto v0.25.0-alpha.5 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Checking if-watch v3.2.1 [INFO] [stderr] Compiling pyo3-macros v0.25.1 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking multiaddr v0.18.2 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_datetime v0.6.9 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking serde_bytes v0.11.17 [INFO] [stderr] Checking serde_with v3.14.0 [INFO] [stderr] Checking yaup v0.3.1 [INFO] [stderr] Checking toml_edit v0.22.26 [INFO] [stderr] Checking libp2p-core v0.43.0 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking libp2p-swarm v0.46.0 [INFO] [stderr] Checking libp2p-noise v0.46.0 [INFO] [stderr] Checking libp2p-yamux v0.47.0 [INFO] [stderr] Checking libp2p-tcp v0.43.0 [INFO] [stderr] Checking hickory-resolver v0.25.0-alpha.5 [INFO] [stderr] Checking toml v0.8.22 [INFO] [stderr] Checking hickory-resolver v0.24.4 [INFO] [stderr] Checking libp2p-relay v0.19.0 [INFO] [stderr] Checking libp2p-allow-block-list v0.5.0 [INFO] [stderr] Checking libp2p-request-response v0.28.0 [INFO] [stderr] Checking libp2p-mdns v0.47.0 [INFO] [stderr] Checking libp2p-connection-limits v0.5.0 [INFO] [stderr] Checking libp2p-gossipsub v0.48.0 [INFO] [stderr] Checking libp2p-kad v0.47.0 [INFO] [stderr] Checking libp2p-identify v0.46.0 [INFO] [stderr] Checking bson v2.15.0 [INFO] [stderr] Checking libp2p-dns v0.43.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking redis v0.32.5 [INFO] [stderr] Checking hyper-util v0.1.12 [INFO] [stderr] Checking mongodb v3.2.5 [INFO] [stderr] Checking libp2p v0.55.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking protocol-p2p v0.1.0 (/opt/rustwide/workdir/protocol-p2p) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> protocol-p2p/src/client.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::{Deserialize, Serialize}; [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: `VoteStatus` [INFO] [stdout] --> protocol-p2p/src/client.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::models::db::{DataContent, VoteStatus}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> protocol-p2p/src/client.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | db, models, DEFAULT_REPUTATION, MEMBERS_FOR_CONSENSUS, MIN_REPUTATION_THRESHOLD, TIMEOUT_SECS, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> protocol-p2p/src/client.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (votation.leader_id == self.peer_id.to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (votation.leader_id == self.peer_id.to_string()) { [INFO] [stdout] 127 + if votation.leader_id == self.peer_id.to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> protocol-p2p/src/models.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StateContent` and `VoteStatus` [INFO] [stdout] --> protocol-p2p/src/db.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::db::{DataContent, StateContent, Topic, Votation, VoteStatus}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db` [INFO] [stdout] --> protocol-p2p/src/db.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db, models}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> protocol-p2p/src/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> protocol-p2p/src/db.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> protocol-p2p/src/client.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::{Deserialize, Serialize}; [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: `VoteStatus` [INFO] [stdout] --> protocol-p2p/src/client.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::models::db::{DataContent, VoteStatus}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> protocol-p2p/src/client.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | db, models, DEFAULT_REPUTATION, MEMBERS_FOR_CONSENSUS, MIN_REPUTATION_THRESHOLD, TIMEOUT_SECS, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> protocol-p2p/src/client.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (votation.leader_id == self.peer_id.to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (votation.leader_id == self.peer_id.to_string()) { [INFO] [stdout] 127 + if votation.leader_id == self.peer_id.to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> protocol-p2p/src/models.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VoteStatus` [INFO] [stdout] --> protocol-p2p/src/db.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::db::{DataContent, StateContent, Topic, Votation, VoteStatus}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> protocol-p2p/src/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> protocol-p2p/src/db.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> protocol-p2p/src/handler.rs:116:30 [INFO] [stdout] | [INFO] [stdout] 116 | let Some(mut votation) = db::get_status_vote(&db, &id_votation) else { [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: variable does not need to be mutable [INFO] [stdout] --> protocol-p2p/src/handler.rs:116:30 [INFO] [stdout] | [INFO] [stdout] 116 | let Some(mut votation) = db::get_status_vote(&db, &id_votation) else { [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: `find_key` [INFO] [stdout] --> protocol-p2p/src/db.rs:248:24 [INFO] [stdout] | [INFO] [stdout] 248 | if let Ok((find_key, value)) = item { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `find_key` [INFO] [stdout] --> protocol-p2p/src/db.rs:248:24 [INFO] [stdout] | [INFO] [stdout] 248 | if let Ok((find_key, value)) = item { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_key` [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] --> protocol-p2p/src/db.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | let mut result = get_status_vote(&db, &vote.id_votation).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VoteStatus` [INFO] [stdout] --> protocol-p2p/src/db.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::db::{DataContent, StateContent, Topic, Votation, VoteStatus}; [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: `chrono::Utc` [INFO] [stdout] --> protocol-p2p/src/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> protocol-p2p/src/db.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> protocol-p2p/src/models.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StateContent` and `VoteStatus` [INFO] [stdout] --> protocol-p2p/src/db.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::db::{DataContent, StateContent, Topic, Votation, VoteStatus}; [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: `db` [INFO] [stdout] --> protocol-p2p/src/db.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db, models}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> protocol-p2p/src/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> protocol-p2p/src/db.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> protocol-p2p/src/models.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking meilisearch-sdk v0.29.1 [INFO] [stdout] warning: unused variable: `find_key` [INFO] [stdout] --> protocol-p2p/src/db.rs:248:24 [INFO] [stdout] | [INFO] [stdout] 248 | if let Ok((find_key, value)) = item { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `find_key` [INFO] [stdout] --> protocol-p2p/src/db.rs:248:24 [INFO] [stdout] | [INFO] [stdout] 248 | if let Ok((find_key, value)) = item { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_key` [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] --> protocol-p2p/src/db.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | let mut result = get_status_vote(&db, &vote.id_votation).unwrap(); [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: function `create_key_for_voting_db` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn create_key_for_voting_db( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_key_without_status` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_key_without_status(content_id: &str, topic: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_hash` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn default_hash(content_id: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store_voter` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn store_voter( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_reputation` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn get_reputation(db: &sled::Db, topic: &str, peer_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_reputation` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn set_reputation( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_reputations` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn update_reputations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_topics` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | pub async fn get_topics(db: &Db) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_topic` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | pub async fn save_topic(db: &Db, topic: &Topic) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `include_new_validated_content` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn include_new_validated_content( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_pending_content_to_validate` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn my_pending_content_to_validate(db: &Db, data_content: &DataContent) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_my_pending_to_contents_to_validate` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn get_my_pending_to_contents_to_validate(db: &Db) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_votes` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn get_votes(db: &Db, id_votation: &str) -> Vec<(String, Vote)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exists_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn exists_vote(db: &Db, id_votation: &str, peer_id: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:266:8 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn add_vote(db: &Db, id_votation: &str, peer_id: &str, vote: &Vote) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_status_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:276:8 [INFO] [stdout] | [INFO] [stdout] 276 | pub fn new_status_vote( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_status_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 296 | pub fn get_status_vote(db: &sled::Db, id_votation: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_status_voteses` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn get_status_voteses(db: &sled::Db) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_and_swap_status_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn compare_and_swap_status_vote( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Topic` is never constructed [INFO] [stdout] --> protocol-p2p/src/models.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Topic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 14 | impl Topic { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(name: &str, description: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Votation` is never constructed [INFO] [stdout] --> protocol-p2p/src/models.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Votation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 34 | impl Votation { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VoteStatus` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum VoteStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:75:16 [INFO] [stdout] | [INFO] [stdout] 74 | impl DataContent { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 75 | pub fn new(id_votation: String, content: String, approved: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEFAULT_TOPIC` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | pub static DEFAULT_TOPIC: Lazy = Lazy::new(|| IdentTopic::new("chat-room")); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Vote` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:171:14 [INFO] [stdout] | [INFO] [stdout] 171 | pub enum Vote { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentMessage` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 178 | pub enum ContentMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_vote_leader_request` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:210:16 [INFO] [stdout] | [INFO] [stdout] 209 | impl ContentMessage { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 210 | pub fn new_vote_leader_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_reputations` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn update_reputations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_topics` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | pub async fn get_topics(db: &Db) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_topic` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | pub async fn save_topic(db: &Db, topic: &Topic) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_pending_content_to_validate` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn my_pending_content_to_validate(db: &Db, data_content: &DataContent) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_my_pending_to_contents_to_validate` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn get_my_pending_to_contents_to_validate(db: &Db) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_votes` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn get_votes(db: &Db, id_votation: &str) -> Vec<(String, Vote)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exists_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn exists_vote(db: &Db, id_votation: &str, peer_id: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_vote` is never used [INFO] [stdout] --> protocol-p2p/src/db.rs:266:8 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn add_vote(db: &Db, id_votation: &str, peer_id: &str, vote: &Vote) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Topic` is never constructed [INFO] [stdout] --> protocol-p2p/src/models.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Topic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 14 | impl Topic { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(name: &str, description: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VoteStatus` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum VoteStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEFAULT_TOPIC` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | pub static DEFAULT_TOPIC: Lazy = Lazy::new(|| IdentTopic::new("chat-room")); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Vote` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:171:14 [INFO] [stdout] | [INFO] [stdout] 171 | pub enum Vote { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentMessage` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 178 | pub enum ContentMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_vote_leader_request` is never used [INFO] [stdout] --> protocol-p2p/src/models.rs:210:16 [INFO] [stdout] | [INFO] [stdout] 209 | impl ContentMessage { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 210 | pub fn new_vote_leader_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking messages-p2p v0.1.0 (/opt/rustwide/workdir/messages-p2p) [INFO] [stdout] warning: unused import: `VoteStatus` [INFO] [stdout] --> messages-p2p/src/p2p/api.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | use protocol_p2p::models::db::{DataContent, Topic, Votation, VoteStatus}; [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: `VoteStatus` [INFO] [stdout] --> messages-p2p/src/p2p/api.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | use protocol_p2p::models::db::{DataContent, Topic, Votation, VoteStatus}; [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 variable: `message_id_fn` [INFO] [stdout] --> messages-p2p/src/p2p/behaviours.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let message_id_fn = |message: &gossipsub::Message| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_id_fn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_id_fn` [INFO] [stdout] --> messages-p2p/src/p2p/behaviours.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let message_id_fn = |message: &gossipsub::Message| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_id_fn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `keypair` and `p2p_port` are never read [INFO] [stdout] --> messages-p2p/src/p2p/bootstrap.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct BootstrapServer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 24 | keypair: Keypair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | p2p_port: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `keypair` and `p2p_port` are never read [INFO] [stdout] --> messages-p2p/src/p2p/bootstrap.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct BootstrapServer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 24 | keypair: Keypair, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | p2p_port: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, SwarmBuilder>> [INFO] [stdout] --> messages-p2p/src/p2p/bootstrap.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let swarm = libp2p::SwarmBuilder::with_existing_identity(keypair.clone()) [INFO] [stdout] | _____________________^ [INFO] [stdout] 62 | | .with_tokio() [INFO] [stdout] 63 | | .with_tcp( [INFO] [stdout] 64 | | tcp::Config::default(), [INFO] [stdout] ... | [INFO] [stdout] 67 | | )? [INFO] [stdout] 68 | | .with_behaviour(behaviour)? [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> messages-p2p/src/p2p/bootstrap.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let swarm = libp2p::SwarmBuilder::with_existing_identity(keypair.clone()) [INFO] [stdout] | _____________________^ [INFO] [stdout] 62 | | .with_tokio() [INFO] [stdout] 63 | | .with_tcp( [INFO] [stdout] 64 | | tcp::Config::default(), [INFO] [stdout] ... | [INFO] [stdout] 67 | | )? [INFO] [stdout] 68 | | .with_behaviour(behaviour)? [INFO] [stdout] | |______________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, SwarmBuilder>> [INFO] [stdout] --> messages-p2p/src/p2p/bootstrap.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let swarm = libp2p::SwarmBuilder::with_existing_identity(keypair.clone()) [INFO] [stdout] | _____________________^ [INFO] [stdout] 62 | | .with_tokio() [INFO] [stdout] 63 | | .with_tcp( [INFO] [stdout] 64 | | tcp::Config::default(), [INFO] [stdout] ... | [INFO] [stdout] 67 | | )? [INFO] [stdout] 68 | | .with_behaviour(behaviour)? [INFO] [stdout] | |_______________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> messages-p2p/src/p2p/bootstrap.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let swarm = libp2p::SwarmBuilder::with_existing_identity(keypair.clone()) [INFO] [stdout] | _____________________^ [INFO] [stdout] 62 | | .with_tokio() [INFO] [stdout] 63 | | .with_tcp( [INFO] [stdout] 64 | | tcp::Config::default(), [INFO] [stdout] ... | [INFO] [stdout] 67 | | )? [INFO] [stdout] 68 | | .with_behaviour(behaviour)? [INFO] [stdout] | |______________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `messages-p2p` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `messages-p2p` (lib) due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "84bcb2c59ffd3815ded80be864a53d50b0526e4a7245b2f09359336565ebda8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84bcb2c59ffd3815ded80be864a53d50b0526e4a7245b2f09359336565ebda8b", kill_on_drop: false }` [INFO] [stdout] 84bcb2c59ffd3815ded80be864a53d50b0526e4a7245b2f09359336565ebda8b