[INFO] cloning repository https://github.com/lisoboss/hf-mirror [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lisoboss/hf-mirror" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flisoboss%2Fhf-mirror", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flisoboss%2Fhf-mirror'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7cf5dffc4e3ba2f9b86f50c069256da43726471e [INFO] linting lisoboss/hf-mirror/7cf5dffc4e3ba2f9b86f50c069256da43726471e against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flisoboss%2Fhf-mirror" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lisoboss/hf-mirror [INFO] finished tweaking git repo https://github.com/lisoboss/hf-mirror [INFO] tweaked toml for git repo https://github.com/lisoboss/hf-mirror written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lisoboss/hf-mirror on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lisoboss/hf-mirror 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-ident v1.0.17 [INFO] [stderr] Downloaded axum-range v0.5.0 [INFO] [stderr] Downloaded headers v0.4.0 [INFO] [stderr] Downloaded axum-core v0.5.0 [INFO] [stderr] Downloaded axum-extra v0.10.0 [INFO] [stderr] Downloaded axum v0.8.1 [INFO] [stderr] Downloaded git2 v0.20.0 [INFO] [stderr] Downloaded libssh2-sys v0.3.1 [INFO] [stderr] Downloaded libz-sys v1.1.21 [INFO] [stderr] Downloaded libgit2-sys v0.18.0+1.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f8cf277ea169572e385acf6a77510b96ce6052eb120e4ad93f22cf73c84ae0a [INFO] running `Command { std: "docker" "start" "-a" "3f8cf277ea169572e385acf6a77510b96ce6052eb120e4ad93f22cf73c84ae0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f8cf277ea169572e385acf6a77510b96ce6052eb120e4ad93f22cf73c84ae0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f8cf277ea169572e385acf6a77510b96ce6052eb120e4ad93f22cf73c84ae0a", kill_on_drop: false }` [INFO] [stdout] 3f8cf277ea169572e385acf6a77510b96ce6052eb120e4ad93f22cf73c84ae0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 112a2b1b5d0aa6a9d9ef437084991b6df8f1471b076483e67cbda7a89305e78f [INFO] running `Command { std: "docker" "start" "-a" "112a2b1b5d0aa6a9d9ef437084991b6df8f1471b076483e67cbda7a89305e78f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking lock_api v0.4.12 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling anyhow v1.0.96 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling cc v1.2.14 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Checking headers v0.4.0 [INFO] [stderr] Compiling libz-sys v1.1.21 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling libssh2-sys v0.3.1 [INFO] [stderr] Compiling libgit2-sys v0.18.0+1.9.0 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking axum-core v0.5.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling pin-project-internal v1.1.9 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking pin-project v1.1.9 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking axum v0.8.1 [INFO] [stderr] Checking git2 v0.20.0 [INFO] [stderr] Checking axum-extra v0.10.0 [INFO] [stderr] Checking axum-range v0.5.0 [INFO] [stderr] Checking hf-mirror v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/agent/api.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | let repo_path = PathBuf::from(&*HF_MIRROR_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] = note: `#[warn(clippy::borrow_interior_mutable_const)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/agent/api.rs:72:36 [INFO] [stdout] | [INFO] [stdout] 72 | let repo_path = PathBuf::from(&*HF_MIRROR_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/agent/file.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | let repo_path = PathBuf::from(&*HF_MIRROR_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/agent/api.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | let repo_path = PathBuf::from(&*HF_MIRROR_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] = note: `#[warn(clippy::borrow_interior_mutable_const)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/etag.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | hasher.update(&buffer); [INFO] [stdout] | ^^^^^^^ help: change this to: `buffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/etag.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | hasher.update(&buffer); [INFO] [stdout] | ^^^^^^^ help: change this to: `buffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/agent/api.rs:72:36 [INFO] [stdout] | [INFO] [stdout] 72 | let repo_path = PathBuf::from(&*HF_MIRROR_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded unit return type [INFO] [stdout] --> src/git.rs:12:52 [INFO] [stdout] | [INFO] [stdout] 12 | mut callback: impl FnMut(String, String, usize) -> (), [INFO] [stdout] | ^^^^^^ help: remove the `-> ()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit [INFO] [stdout] = note: `#[warn(clippy::unused_unit)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: matching on `Some` with `ok()` is redundant [INFO] [stdout] --> src/git.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(obj) = entry.to_object(&repo).ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok [INFO] [stdout] = note: `#[warn(clippy::match_result_ok)]` on by default [INFO] [stdout] help: consider matching on `Ok(obj)` and removing the call to `ok` instead [INFO] [stdout] | [INFO] [stdout] 19 - if let Some(obj) = entry.to_object(&repo).ok() { [INFO] [stdout] 19 + if let Ok(obj) = entry.to_object(&repo) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named constant with interior mutability [INFO] [stdout] --> src/main.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const HF_MIRROR_PATH: LazyCell = [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to make this a `thread_local!` item [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const [INFO] [stdout] = note: `#[warn(clippy::declare_interior_mutable_const)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named constant with interior mutability [INFO] [stdout] --> src/main.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const HF_MIRROR_ADDR: LazyCell = LazyCell::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to make this a `thread_local!` item [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/main.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | let listener = TcpListener::bind(&*HF_MIRROR_ADDR).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/agent/file.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | let repo_path = PathBuf::from(&*HF_MIRROR_PATH) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/etag.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | hasher.update(&buffer); [INFO] [stdout] | ^^^^^^^ help: change this to: `buffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/etag.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | hasher.update(&buffer); [INFO] [stdout] | ^^^^^^^ help: change this to: `buffer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded unit return type [INFO] [stdout] --> src/git.rs:12:52 [INFO] [stdout] | [INFO] [stdout] 12 | mut callback: impl FnMut(String, String, usize) -> (), [INFO] [stdout] | ^^^^^^ help: remove the `-> ()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit [INFO] [stdout] = note: `#[warn(clippy::unused_unit)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: matching on `Some` with `ok()` is redundant [INFO] [stdout] --> src/git.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(obj) = entry.to_object(&repo).ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok [INFO] [stdout] = note: `#[warn(clippy::match_result_ok)]` on by default [INFO] [stdout] help: consider matching on `Ok(obj)` and removing the call to `ok` instead [INFO] [stdout] | [INFO] [stdout] 19 - if let Some(obj) = entry.to_object(&repo).ok() { [INFO] [stdout] 19 + if let Ok(obj) = entry.to_object(&repo) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named constant with interior mutability [INFO] [stdout] --> src/main.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const HF_MIRROR_PATH: LazyCell = [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to make this a `thread_local!` item [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const [INFO] [stdout] = note: `#[warn(clippy::declare_interior_mutable_const)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named constant with interior mutability [INFO] [stdout] --> src/main.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const HF_MIRROR_ADDR: LazyCell = LazyCell::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to make this a `thread_local!` item [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: borrow of a named constant with interior mutability [INFO] [stdout] --> src/main.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | let listener = TcpListener::bind(&*HF_MIRROR_ADDR).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this deref expression is a call to `Deref::deref` [INFO] [stdout] = help: this lint can be silenced by assigning the value to a local variable before borrowing [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.20s [INFO] running `Command { std: "docker" "inspect" "112a2b1b5d0aa6a9d9ef437084991b6df8f1471b076483e67cbda7a89305e78f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "112a2b1b5d0aa6a9d9ef437084991b6df8f1471b076483e67cbda7a89305e78f", kill_on_drop: false }` [INFO] [stdout] 112a2b1b5d0aa6a9d9ef437084991b6df8f1471b076483e67cbda7a89305e78f