[INFO] fetching crate rust-paper 0.1.2... [INFO] building rust-paper-0.1.2 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate rust-paper 0.1.2 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate rust-paper 0.1.2 [INFO] finished tweaking crates.io crate rust-paper 0.1.2 [INFO] tweaked toml for crates.io crate rust-paper 0.1.2 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-paper 0.1.2 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust-paper 0.1.2 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.84 [INFO] [stderr] Downloaded miniz_oxide v0.7.3 [INFO] [stderr] Downloaded bytes v1.6.0 [INFO] [stderr] Downloaded tower-layer v0.3.2 [INFO] [stderr] Downloaded fastrand v2.1.0 [INFO] [stderr] Downloaded either v1.12.0 [INFO] [stderr] Downloaded jobserver v0.1.31 [INFO] [stderr] Downloaded serde v1.0.203 [INFO] [stderr] Downloaded url v2.5.2 [INFO] [stderr] Downloaded png v0.17.13 [INFO] [stderr] Downloaded avif-serialize v0.8.1 [INFO] [stderr] Downloaded redox_users v0.4.5 [INFO] [stderr] Downloaded exr v1.72.0 [INFO] [stderr] Downloaded target-lexicon v0.12.14 [INFO] [stderr] Downloaded anyhow v1.0.86 [INFO] [stderr] Downloaded hyper v1.3.1 [INFO] [stderr] Downloaded libfuzzer-sys v0.4.7 [INFO] [stderr] Downloaded fdeflate v0.3.4 [INFO] [stderr] Downloaded built v0.7.3 [INFO] [stderr] Downloaded http-body v1.0.0 [INFO] [stderr] Downloaded image-webp v0.1.2 [INFO] [stderr] Downloaded hyper-util v0.1.4 [INFO] [stderr] Downloaded lock v0.1.0 [INFO] [stderr] Downloaded confy v0.6.1 [INFO] [stderr] Downloaded encoding_rs v0.8.34 [INFO] [stderr] Downloaded http-body-util v0.1.1 [INFO] [stderr] Downloaded serde_json v1.0.117 [INFO] [stderr] Downloaded num-bigint v0.4.5 [INFO] [stderr] Downloaded tokio-util v0.7.11 [INFO] [stderr] Downloaded arbitrary v1.3.2 [INFO] [stderr] Downloaded toml_edit v0.22.13 [INFO] [stderr] Downloaded flate2 v1.0.30 [INFO] [stderr] Downloaded h2 v0.4.5 [INFO] [stderr] Downloaded schannel v0.1.23 [INFO] [stderr] Downloaded cc v1.0.98 [INFO] [stderr] Downloaded libc v0.2.155 [INFO] [stderr] Downloaded rustls-pemfile v2.1.2 [INFO] [stderr] Downloaded tokio v1.40.0 [INFO] [stderr] Downloaded profiling-procmacros v1.0.15 [INFO] [stderr] Downloaded toml v0.8.13 [INFO] [stderr] Downloaded rgb v0.8.37 [INFO] [stderr] Downloaded zune-jpeg v0.4.11 [INFO] [stderr] Downloaded serde_derive v1.0.203 [INFO] [stderr] Downloaded imgref v1.10.1 [INFO] [stderr] Downloaded serde_spanned v0.6.6 [INFO] [stderr] Downloaded toml_datetime v0.6.6 [INFO] [stderr] Downloaded thiserror-impl v1.0.61 [INFO] [stderr] Downloaded thiserror v1.0.61 [INFO] [stderr] Downloaded bytemuck v1.16.0 [INFO] [stderr] Downloaded security-framework-sys v2.11.0 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.42 [INFO] [stderr] Downloaded profiling v1.0.15 [INFO] [stderr] Downloaded ravif v0.11.5 [INFO] [stderr] Downloaded syn v2.0.66 [INFO] [stderr] Downloaded security-framework v2.11.0 [INFO] [stderr] Downloaded bitstream-io v2.3.0 [INFO] [stderr] Downloaded winnow v0.6.8 [INFO] [stderr] Downloaded image v0.25.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1be8be98189dd01e63cf5d42be2bd75077d02ae083cf086c05dae9b3480e659a [INFO] running `Command { std: "docker" "start" "-a" "1be8be98189dd01e63cf5d42be2bd75077d02ae083cf086c05dae9b3480e659a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1be8be98189dd01e63cf5d42be2bd75077d02ae083cf086c05dae9b3480e659a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1be8be98189dd01e63cf5d42be2bd75077d02ae083cf086c05dae9b3480e659a", kill_on_drop: false }` [INFO] [stdout] 1be8be98189dd01e63cf5d42be2bd75077d02ae083cf086c05dae9b3480e659a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03ec49426fff49448731dbb6594aea841bbb2d6d4f3a88c5d4585dc30237198c [INFO] running `Command { std: "docker" "start" "-a" "03ec49426fff49448731dbb6594aea841bbb2d6d4f3a88c5d4585dc30237198c", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling miniz_oxide v0.7.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling built v0.7.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling bytemuck v1.16.0 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling num-bigint v0.4.5 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling imgref v1.10.1 [INFO] [stderr] Compiling winnow v0.6.8 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling bitstream-io v2.3.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling rgb v0.8.37 [INFO] [stderr] Compiling avif-serialize v0.8.1 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling lock v0.1.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling zune-jpeg v0.4.11 [INFO] [stderr] Compiling clap_builder v4.5.20 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling directories v5.0.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling image-webp v0.1.2 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling clap v4.5.20 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling toml_datetime v0.6.6 [INFO] [stderr] Compiling serde_spanned v0.6.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ravif v0.11.5 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling toml_edit v0.22.13 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling image v0.25.1 [INFO] [stderr] Compiling toml v0.8.13 [INFO] [stderr] Compiling confy v0.6.1 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.4 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.4 [INFO] [stderr] Compiling rust-paper v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `config_folder` is never read [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct RustPaper { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 27 | config: config::Config, [INFO] [stdout] 28 | config_folder: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RustPaper` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_img_extension` is never used [INFO] [stdout] --> src/helper.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_img_extension(format: &ImageFormat) -> &'static str { [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_curl_content` is never used [INFO] [stdout] --> src/helper.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn get_curl_content(link: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_sha256` is never used [INFO] [stdout] --> src/helper.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn calculate_sha256(file_path: impl AsRef) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_image` is never used [INFO] [stdout] --> src/helper.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub async fn download_image(url: &str, id: &str, save_location: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_home_location` is never used [INFO] [stdout] --> src/helper.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn get_home_location() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_folder_path` is never used [INFO] [stdout] --> src/helper.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn get_folder_path() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_array` is never used [INFO] [stdout] --> src/helper.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn to_array(comma_separated_values: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_url` is never used [INFO] [stdout] --> src/helper.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn is_url(input: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockEntry` is never constructed [INFO] [stdout] --> src/lock.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct LockEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockFile` is never constructed [INFO] [stdout] --> src/lock.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct LockFile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `contains`, and `try_default` are never used [INFO] [stdout] --> src/lock.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl LockFile { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn add(&mut self, image_id: String, image_location: String, sha256: String) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn contains(&self, image_id: &str, hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn try_default() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "03ec49426fff49448731dbb6594aea841bbb2d6d4f3a88c5d4585dc30237198c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03ec49426fff49448731dbb6594aea841bbb2d6d4f3a88c5d4585dc30237198c", kill_on_drop: false }` [INFO] [stdout] 03ec49426fff49448731dbb6594aea841bbb2d6d4f3a88c5d4585dc30237198c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b0d1986ab1e5995be25e855700c33d3e250a505aebbdd9e7c38bcad825bdab2 [INFO] running `Command { std: "docker" "start" "-a" "5b0d1986ab1e5995be25e855700c33d3e250a505aebbdd9e7c38bcad825bdab2", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling rust-paper v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `config_folder` is never read [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct RustPaper { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 27 | config: config::Config, [INFO] [stdout] 28 | config_folder: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RustPaper` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config_folder` is never read [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct RustPaper { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 27 | config: config::Config, [INFO] [stdout] 28 | config_folder: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RustPaper` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_img_extension` is never used [INFO] [stdout] --> src/helper.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_img_extension(format: &ImageFormat) -> &'static str { [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_curl_content` is never used [INFO] [stdout] --> src/helper.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn get_curl_content(link: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_sha256` is never used [INFO] [stdout] --> src/helper.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn calculate_sha256(file_path: impl AsRef) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_image` is never used [INFO] [stdout] --> src/helper.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub async fn download_image(url: &str, id: &str, save_location: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_home_location` is never used [INFO] [stdout] --> src/helper.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn get_home_location() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_folder_path` is never used [INFO] [stdout] --> src/helper.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn get_folder_path() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_array` is never used [INFO] [stdout] --> src/helper.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn to_array(comma_separated_values: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_url` is never used [INFO] [stdout] --> src/helper.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn is_url(input: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockEntry` is never constructed [INFO] [stdout] --> src/lock.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct LockEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockFile` is never constructed [INFO] [stdout] --> src/lock.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct LockFile { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `contains`, and `try_default` are never used [INFO] [stdout] --> src/lock.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl LockFile { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn add(&mut self, image_id: String, image_location: String, sha256: String) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn contains(&self, image_id: &str, hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn try_default() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.48s [INFO] running `Command { std: "docker" "inspect" "5b0d1986ab1e5995be25e855700c33d3e250a505aebbdd9e7c38bcad825bdab2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b0d1986ab1e5995be25e855700c33d3e250a505aebbdd9e7c38bcad825bdab2", kill_on_drop: false }` [INFO] [stdout] 5b0d1986ab1e5995be25e855700c33d3e250a505aebbdd9e7c38bcad825bdab2