[INFO] cloning repository https://github.com/embassy-rs/docserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/embassy-rs/docserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fembassy-rs%2Fdocserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fembassy-rs%2Fdocserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2067396fd6916bcfd0ac3e644d05ff1b36828b76 [INFO] checking embassy-rs/docserver against master#2ad4eb207b369017f5140918b5e4b0d3650b46b0 for pr-95611 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fembassy-rs%2Fdocserver" "/workspace/builds/worker-62/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-62/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/embassy-rs/docserver on toolchain 2ad4eb207b369017f5140918b5e4b0d3650b46b0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+2ad4eb207b369017f5140918b5e4b0d3650b46b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/embassy-rs/docserver [INFO] finished tweaking git repo https://github.com/embassy-rs/docserver [INFO] tweaked toml for git repo https://github.com/embassy-rs/docserver written to /workspace/builds/worker-62/source/Cargo.toml [INFO] crate git repo https://github.com/embassy-rs/docserver already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+2ad4eb207b369017f5140918b5e4b0d3650b46b0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+2ad4eb207b369017f5140918b5e4b0d3650b46b0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc49fdfe213df164b2b77c8b98e5a8b610972b8e72c92156491316c3774de11f [INFO] running `Command { std: "docker" "start" "-a" "dc49fdfe213df164b2b77c8b98e5a8b610972b8e72c92156491316c3774de11f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc49fdfe213df164b2b77c8b98e5a8b610972b8e72c92156491316c3774de11f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc49fdfe213df164b2b77c8b98e5a8b610972b8e72c92156491316c3774de11f", kill_on_drop: false }` [INFO] [stdout] dc49fdfe213df164b2b77c8b98e5a8b610972b8e72c92156491316c3774de11f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-62/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+2ad4eb207b369017f5140918b5e4b0d3650b46b0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 801cec0fc64cc9d0c30ff23ba24da38086ea01ef4d72babd8672bbd8f412e970 [INFO] running `Command { std: "docker" "start" "-a" "801cec0fc64cc9d0c30ff23ba24da38086ea01ef4d72babd8672bbd8f412e970", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling zstd-safe v4.1.3+zstd.1.5.1 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling crossbeam-queue v0.3.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking humansize v1.1.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking tracing-core v0.1.23 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking tracing v0.1.32 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking memmap2 v0.5.3 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking globset v0.4.8 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking crossbeam v0.8.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking ignore v0.4.18 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Compiling zstd-sys v1.6.2+zstd.1.5.1 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Compiling chrono-tz-build v0.0.2 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling chrono-tz v0.6.1 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking h2 v0.3.12 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking hyper v0.14.18 [INFO] [stderr] Checking tera v1.15.0 [INFO] [stderr] Checking zstd v0.9.2+zstd.1.5.1 [INFO] [stderr] Checking docserver2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/bin/builder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/bin/builder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `visited` [INFO] [stdout] --> src/bin/zup.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | visited: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAGIC` [INFO] [stdout] --> src/bin/../zup/layout.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub const MAGIC: u32 = 0x2170755a; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERSION` [INFO] [stdout] --> src/bin/../zup/layout.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | pub const VERSION: u32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open` [INFO] [stdout] --> src/bin/../zup/read.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn open(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn read(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/bin/../zup/read.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn read_u16(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u32` [INFO] [stdout] --> src/bin/../zup/read.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn read_u32(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u64` [INFO] [stdout] --> src/bin/../zup/read.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn read_u64(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len16` [INFO] [stdout] --> src/bin/../zup/read.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn read_slice_len16(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMPRESSION_LEVEL` [INFO] [stdout] --> src/bin/../zup/write.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const COMPRESSION_LEVEL: i32 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DICTIONARY_SIZE` [INFO] [stdout] --> src/bin/../zup/write.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const DICTIONARY_SIZE: usize = 163840; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Node` [INFO] [stdout] --> src/bin/../zup/write.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Directory` [INFO] [stdout] --> src/bin/../zup/write.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DirectoryEntry` [INFO] [stdout] --> src/bin/../zup/write.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DirectoryEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `File` [INFO] [stdout] --> src/bin/../zup/write.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct File { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/bin/../zup/write.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PackConfig` [INFO] [stdout] --> src/bin/../zup/write.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PackConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Tree` [INFO] [stdout] --> src/bin/../zup/write.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/write.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node_count` [INFO] [stdout] --> src/bin/../zup/write.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn node_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_bytes` [INFO] [stdout] --> src/bin/../zup/write.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn total_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gen_id` [INFO] [stdout] --> src/bin/../zup/write.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn gen_id(&mut self) -> NodeId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pack` [INFO] [stdout] --> src/bin/../zup/write.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn pack(&mut self, path: &Path, config: &PackConfig) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_node` [INFO] [stdout] --> src/bin/../zup/write.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn add_node(&mut self, node: Node) -> NodeId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn write(&mut self, path: &Path, root: NodeId) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Writer` [INFO] [stdout] --> src/bin/../zup/write.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct Writer<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn write(&mut self, node_id: NodeId) -> io::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_node` [INFO] [stdout] --> src/bin/../zup/write.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn write_node(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_data` [INFO] [stdout] --> src/bin/../zup/write.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | fn write_data(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `visited` [INFO] [stdout] --> src/bin/zup.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | visited: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAGIC` [INFO] [stdout] --> src/bin/../zup/layout.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub const MAGIC: u32 = 0x2170755a; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERSION` [INFO] [stdout] --> src/bin/../zup/layout.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | pub const VERSION: u32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open` [INFO] [stdout] --> src/bin/../zup/read.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn open(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn read(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/bin/../zup/read.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn read_u16(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u32` [INFO] [stdout] --> src/bin/../zup/read.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn read_u32(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u64` [INFO] [stdout] --> src/bin/../zup/read.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn read_u64(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len16` [INFO] [stdout] --> src/bin/../zup/read.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn read_slice_len16(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMPRESSION_LEVEL` [INFO] [stdout] --> src/bin/../zup/write.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const COMPRESSION_LEVEL: i32 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DICTIONARY_SIZE` [INFO] [stdout] --> src/bin/../zup/write.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const DICTIONARY_SIZE: usize = 163840; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Node` [INFO] [stdout] --> src/bin/../zup/write.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Directory` [INFO] [stdout] --> src/bin/../zup/write.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DirectoryEntry` [INFO] [stdout] --> src/bin/../zup/write.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DirectoryEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `File` [INFO] [stdout] --> src/bin/../zup/write.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct File { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/bin/../zup/write.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PackConfig` [INFO] [stdout] --> src/bin/../zup/write.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PackConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Tree` [INFO] [stdout] --> src/bin/../zup/write.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/write.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node_count` [INFO] [stdout] --> src/bin/../zup/write.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn node_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_bytes` [INFO] [stdout] --> src/bin/../zup/write.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn total_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gen_id` [INFO] [stdout] --> src/bin/../zup/write.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn gen_id(&mut self) -> NodeId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pack` [INFO] [stdout] --> src/bin/../zup/write.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn pack(&mut self, path: &Path, config: &PackConfig) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_node` [INFO] [stdout] --> src/bin/../zup/write.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn add_node(&mut self, node: Node) -> NodeId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn write(&mut self, path: &Path, root: NodeId) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Writer` [INFO] [stdout] --> src/bin/../zup/write.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct Writer<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn write(&mut self, node_id: NodeId) -> io::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_node` [INFO] [stdout] --> src/bin/../zup/write.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn write_node(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_data` [INFO] [stdout] --> src/bin/../zup/write.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | fn write_data(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut flavor = cookies [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/server.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut flavor = cookies [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_bytes(b: [u8; Self::LEN]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn from_bytes(b: [u8; Self::LEN]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn from_bytes(b: [u8; Self::LEN]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Reader` [INFO] [stdout] --> src/bin/../zup/read.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Reader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/read.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new>(path: P) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_range` [INFO] [stdout] --> src/bin/../zup/read.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_range(m: &Mmap, r: layout::Range) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_node` [INFO] [stdout] --> src/bin/../zup/read.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn read_node(&self, node: layout::Node) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `root_node` [INFO] [stdout] --> src/bin/../zup/read.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn root_node(&self) -> Node<'_> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open` [INFO] [stdout] --> src/bin/../zup/read.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn open(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn read(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Node` [INFO] [stdout] --> src/bin/../zup/read.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Node<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `File` [INFO] [stdout] --> src/bin/../zup/read.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct File<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn read(&self) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Directory` [INFO] [stdout] --> src/bin/../zup/read.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Directory<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `children` [INFO] [stdout] --> src/bin/../zup/read.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn children(&self) -> io::Result)>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ByteReader` [INFO] [stdout] --> src/bin/../zup/read.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct ByteReader<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/read.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn new(data: &'a [u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eof` [INFO] [stdout] --> src/bin/../zup/read.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | fn eof(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn read(&self) -> Result<[u8; N], ReadError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u8` [INFO] [stdout] --> src/bin/../zup/read.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn read_u8(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/bin/../zup/read.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn read_u16(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u32` [INFO] [stdout] --> src/bin/../zup/read.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn read_u32(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u64` [INFO] [stdout] --> src/bin/../zup/read.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn read_u64(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice` [INFO] [stdout] --> src/bin/../zup/read.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | fn read_slice(&self, len: usize) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len8` [INFO] [stdout] --> src/bin/../zup/read.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn read_slice_len8(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len16` [INFO] [stdout] --> src/bin/../zup/read.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn read_slice_len16(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_bytes(b: [u8; Self::LEN]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn from_bytes(b: [u8; Self::LEN]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn from_bytes(b: [u8; Self::LEN]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Reader` [INFO] [stdout] --> src/bin/../zup/read.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Reader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/read.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new>(path: P) -> io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_range` [INFO] [stdout] --> src/bin/../zup/read.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_range(m: &Mmap, r: layout::Range) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_node` [INFO] [stdout] --> src/bin/../zup/read.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn read_node(&self, node: layout::Node) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `root_node` [INFO] [stdout] --> src/bin/../zup/read.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn root_node(&self) -> Node<'_> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `open` [INFO] [stdout] --> src/bin/../zup/read.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn open(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn read(&self, path: &[&str]) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Node` [INFO] [stdout] --> src/bin/../zup/read.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Node<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `File` [INFO] [stdout] --> src/bin/../zup/read.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct File<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn read(&self) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Directory` [INFO] [stdout] --> src/bin/../zup/read.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Directory<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `children` [INFO] [stdout] --> src/bin/../zup/read.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn children(&self) -> io::Result)>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ByteReader` [INFO] [stdout] --> src/bin/../zup/read.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct ByteReader<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/read.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | fn new(data: &'a [u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eof` [INFO] [stdout] --> src/bin/../zup/read.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | fn eof(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/bin/../zup/read.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn read(&self) -> Result<[u8; N], ReadError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u8` [INFO] [stdout] --> src/bin/../zup/read.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn read_u8(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/bin/../zup/read.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn read_u16(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u32` [INFO] [stdout] --> src/bin/../zup/read.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn read_u32(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u64` [INFO] [stdout] --> src/bin/../zup/read.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn read_u64(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice` [INFO] [stdout] --> src/bin/../zup/read.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | fn read_slice(&self, len: usize) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len8` [INFO] [stdout] --> src/bin/../zup/read.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn read_slice_len8(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len16` [INFO] [stdout] --> src/bin/../zup/read.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn read_slice_len16(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/server.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | _ => self.resp_404(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crates` [INFO] [stdout] --> src/bin/server.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let crates = self.list_crates()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/server.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | _ => self.resp_404(), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crates` [INFO] [stdout] --> src/bin/server.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let crates = self.list_crates()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_crates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAGIC` [INFO] [stdout] --> src/bin/../zup/layout.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub const MAGIC: u32 = 0x2170755a; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERSION` [INFO] [stdout] --> src/bin/../zup/layout.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | pub const VERSION: u32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/bin/../zup/read.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn read_u16(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u32` [INFO] [stdout] --> src/bin/../zup/read.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn read_u32(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u64` [INFO] [stdout] --> src/bin/../zup/read.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn read_u64(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len16` [INFO] [stdout] --> src/bin/../zup/read.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn read_slice_len16(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMPRESSION_LEVEL` [INFO] [stdout] --> src/bin/../zup/write.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const COMPRESSION_LEVEL: i32 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DICTIONARY_SIZE` [INFO] [stdout] --> src/bin/../zup/write.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const DICTIONARY_SIZE: usize = 163840; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Node` [INFO] [stdout] --> src/bin/../zup/write.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Directory` [INFO] [stdout] --> src/bin/../zup/write.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DirectoryEntry` [INFO] [stdout] --> src/bin/../zup/write.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DirectoryEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `File` [INFO] [stdout] --> src/bin/../zup/write.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct File { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/bin/../zup/write.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PackConfig` [INFO] [stdout] --> src/bin/../zup/write.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PackConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Tree` [INFO] [stdout] --> src/bin/../zup/write.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/write.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node_count` [INFO] [stdout] --> src/bin/../zup/write.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn node_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_bytes` [INFO] [stdout] --> src/bin/../zup/write.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn total_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gen_id` [INFO] [stdout] --> src/bin/../zup/write.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn gen_id(&mut self) -> NodeId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pack` [INFO] [stdout] --> src/bin/../zup/write.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn pack(&mut self, path: &Path, config: &PackConfig) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_node` [INFO] [stdout] --> src/bin/../zup/write.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn add_node(&mut self, node: Node) -> NodeId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn write(&mut self, path: &Path, root: NodeId) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Writer` [INFO] [stdout] --> src/bin/../zup/write.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct Writer<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn write(&mut self, node_id: NodeId) -> io::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_node` [INFO] [stdout] --> src/bin/../zup/write.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn write_node(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_data` [INFO] [stdout] --> src/bin/../zup/write.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | fn write_data(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAGIC` [INFO] [stdout] --> src/bin/../zup/layout.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub const MAGIC: u32 = 0x2170755a; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERSION` [INFO] [stdout] --> src/bin/../zup/layout.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | pub const VERSION: u32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bytes` [INFO] [stdout] --> src/bin/../zup/layout.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn to_bytes(self) -> [u8; Self::LEN] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> src/bin/../zup/read.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn node(&self) -> layout::Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/bin/../zup/read.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn read_u16(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u32` [INFO] [stdout] --> src/bin/../zup/read.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn read_u32(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u64` [INFO] [stdout] --> src/bin/../zup/read.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn read_u64(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_slice_len16` [INFO] [stdout] --> src/bin/../zup/read.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn read_slice_len16(&self) -> Result<&[u8], ReadError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `COMPRESSION_LEVEL` [INFO] [stdout] --> src/bin/../zup/write.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const COMPRESSION_LEVEL: i32 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DICTIONARY_SIZE` [INFO] [stdout] --> src/bin/../zup/write.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const DICTIONARY_SIZE: usize = 163840; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Node` [INFO] [stdout] --> src/bin/../zup/write.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Directory` [INFO] [stdout] --> src/bin/../zup/write.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DirectoryEntry` [INFO] [stdout] --> src/bin/../zup/write.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DirectoryEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `File` [INFO] [stdout] --> src/bin/../zup/write.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct File { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash` [INFO] [stdout] --> src/bin/../zup/write.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PackConfig` [INFO] [stdout] --> src/bin/../zup/write.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PackConfig { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Tree` [INFO] [stdout] --> src/bin/../zup/write.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bin/../zup/write.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node_count` [INFO] [stdout] --> src/bin/../zup/write.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn node_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `total_bytes` [INFO] [stdout] --> src/bin/../zup/write.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn total_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gen_id` [INFO] [stdout] --> src/bin/../zup/write.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn gen_id(&mut self) -> NodeId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pack` [INFO] [stdout] --> src/bin/../zup/write.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn pack(&mut self, path: &Path, config: &PackConfig) -> io::Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_node` [INFO] [stdout] --> src/bin/../zup/write.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn add_node(&mut self, node: Node) -> NodeId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn write(&mut self, path: &Path, root: NodeId) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Writer` [INFO] [stdout] --> src/bin/../zup/write.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct Writer<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/bin/../zup/write.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn write(&mut self, node_id: NodeId) -> io::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_node` [INFO] [stdout] --> src/bin/../zup/write.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn write_node(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_data` [INFO] [stdout] --> src/bin/../zup/write.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | fn write_data(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 55.21s [INFO] running `Command { std: "docker" "inspect" "801cec0fc64cc9d0c30ff23ba24da38086ea01ef4d72babd8672bbd8f412e970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "801cec0fc64cc9d0c30ff23ba24da38086ea01ef4d72babd8672bbd8f412e970", kill_on_drop: false }` [INFO] [stdout] 801cec0fc64cc9d0c30ff23ba24da38086ea01ef4d72babd8672bbd8f412e970