[INFO] cloning repository https://github.com/thanos/mirror [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thanos/mirror" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanos%2Fmirror", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanos%2Fmirror'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e9de083465ea17ddb9b7026b71d16d8cd1adcd24 [INFO] building thanos/mirror against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanos%2Fmirror" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/thanos/mirror [INFO] finished tweaking git repo https://github.com/thanos/mirror [INFO] tweaked toml for git repo https://github.com/thanos/mirror written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/thanos/mirror 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 git repo https://github.com/thanos/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cookie v0.17.0 [INFO] [stderr] Downloaded select v0.6.1 [INFO] [stderr] Downloaded cookie_store v0.20.0 [INFO] [stderr] Downloaded clap v4.5.45 [INFO] [stderr] Downloaded publicsuffix v2.3.0 [INFO] [stderr] Downloaded clap_builder v4.5.44 [INFO] [stderr] Downloaded webp v0.2.6 [INFO] [stderr] Downloaded libwebp-sys v0.9.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae53e66b1b7a5ca65050728a288562774aebc42275130518048243bfebfb0e91 [INFO] running `Command { std: "docker" "start" "-a" "ae53e66b1b7a5ca65050728a288562774aebc42275130518048243bfebfb0e91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae53e66b1b7a5ca65050728a288562774aebc42275130518048243bfebfb0e91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae53e66b1b7a5ca65050728a288562774aebc42275130518048243bfebfb0e91", kill_on_drop: false }` [INFO] [stdout] ae53e66b1b7a5ca65050728a288562774aebc42275130518048243bfebfb0e91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 994a6a81aa8a5adaed6ebec5796126b913af59c203c4db88c985c434e1b9424d [INFO] running `Command { std: "docker" "start" "-a" "994a6a81aa8a5adaed6ebec5796126b913af59c203c4db88c985c434e1b9424d", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling gif v0.13.3 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling libwebp-sys v0.9.6 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling url v2.5.6 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling xml5ever v0.17.0 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling cookie_store v0.20.0 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling markup5ever_rcdom v0.2.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling select v0.6.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling webp v0.2.6 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling website-mirror v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/downloader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use regex::Regex; [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: `download_external` [INFO] [stdout] --> src/downloader.rs:414:9 [INFO] [stdout] | [INFO] [stdout] 414 | download_external: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_external` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resource_type` [INFO] [stdout] --> src/downloader.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | resource_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `semaphore` is never read [INFO] [stdout] --> src/downloader.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct WebsiteMirror { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | semaphore: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebsiteMirror` has derived impls for the traits `Debug` and `Clone`, but these are 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: methods `get_local_path_for_resource` and `convert_to_webp` are never used [INFO] [stdout] --> src/downloader.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl WebsiteMirror { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 91 | /// Get the local path for a resource, converting image extensions to WebP if needed [INFO] [stdout] 92 | fn get_local_path_for_resource(&self, html_parser: &HtmlParser, original_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn convert_to_webp(&self, image_data: &[u8], original_url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "994a6a81aa8a5adaed6ebec5796126b913af59c203c4db88c985c434e1b9424d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "994a6a81aa8a5adaed6ebec5796126b913af59c203c4db88c985c434e1b9424d", kill_on_drop: false }` [INFO] [stdout] 994a6a81aa8a5adaed6ebec5796126b913af59c203c4db88c985c434e1b9424d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf17085b6eb38b6c446194acd91b45f55ad3ec77782a3f37c2e59cad55d062ff [INFO] running `Command { std: "docker" "start" "-a" "cf17085b6eb38b6c446194acd91b45f55ad3ec77782a3f37c2e59cad55d062ff", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling criterion-plot v0.6.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling mockall v0.13.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling cookie_store v0.20.0 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling criterion v0.7.0 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling xml5ever v0.17.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling markup5ever_rcdom v0.2.0 [INFO] [stderr] Compiling select v0.6.1 [INFO] [stderr] Compiling webp v0.2.6 [INFO] [stderr] Compiling website-mirror v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/downloader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use regex::Regex; [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: `download_external` [INFO] [stdout] --> src/downloader.rs:414:9 [INFO] [stdout] | [INFO] [stdout] 414 | download_external: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_external` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resource_type` [INFO] [stdout] --> src/downloader.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | resource_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `semaphore` is never read [INFO] [stdout] --> src/downloader.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct WebsiteMirror { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | semaphore: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebsiteMirror` has derived impls for the traits `Debug` and `Clone`, but these are 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: methods `get_local_path_for_resource` and `convert_to_webp` are never used [INFO] [stdout] --> src/downloader.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl WebsiteMirror { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 91 | /// Get the local path for a resource, converting image extensions to WebP if needed [INFO] [stdout] 92 | fn get_local_path_for_resource(&self, html_parser: &HtmlParser, original_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn convert_to_webp(&self, image_data: &[u8], original_url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileManager` [INFO] [stdout] --> tests/webp_extension_tests.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use website_mirror::{WebsiteMirror, HtmlParser, FileManager, ResourceType}; [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: `std::fs` [INFO] [stdout] --> tests/webp_extension_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/downloader.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use regex::Regex; [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: `std::sync::Arc` [INFO] [stdout] --> src/downloader.rs:901:9 [INFO] [stdout] | [INFO] [stdout] 901 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/downloader.rs:902:9 [INFO] [stdout] | [INFO] [stdout] 902 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/html_parser.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mirror` [INFO] [stdout] --> tests/webp_extension_tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mirror = WebsiteMirror::new( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mirror` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> tests/webp_extension_tests.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let temp_dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> tests/webp_extension_tests.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let temp_dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> tests/webp_extension_tests.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | let temp_dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> tests/webp_extension_tests.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | let temp_dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> tests/webp_extension_tests.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | let temp_dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> tests/integration_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [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 imports: `DownloadPriority` and `DownloadTask` [INFO] [stdout] --> tests/integration_tests.rs:2:76 [INFO] [stdout] | [INFO] [stdout] 2 | use website_mirror::{WebsiteMirror, HtmlParser, FileManager, ResourceType, DownloadTask, DownloadPriority}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_external` [INFO] [stdout] --> src/downloader.rs:414:9 [INFO] [stdout] | [INFO] [stdout] 414 | download_external: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_external` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resource_type` [INFO] [stdout] --> src/downloader.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | resource_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> src/downloader.rs:1198:13 [INFO] [stdout] | [INFO] [stdout] 1198 | let temp_dir = tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `semaphore` is never read [INFO] [stdout] --> src/downloader.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct WebsiteMirror { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | semaphore: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebsiteMirror` has derived impls for the traits `Debug` and `Clone`, but these are 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: methods `get_local_path_for_resource` and `convert_to_webp` are never used [INFO] [stdout] --> src/downloader.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl WebsiteMirror { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 91 | /// Get the local path for a resource, converting image extensions to WebP if needed [INFO] [stdout] 92 | fn get_local_path_for_resource(&self, html_parser: &HtmlParser, original_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn convert_to_webp(&self, image_data: &[u8], original_url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 34.98s [INFO] running `Command { std: "docker" "inspect" "cf17085b6eb38b6c446194acd91b45f55ad3ec77782a3f37c2e59cad55d062ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf17085b6eb38b6c446194acd91b45f55ad3ec77782a3f37c2e59cad55d062ff", kill_on_drop: false }` [INFO] [stdout] cf17085b6eb38b6c446194acd91b45f55ad3ec77782a3f37c2e59cad55d062ff