[INFO] cloning repository https://github.com/xinyu391/rpdf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xinyu391/rpdf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxinyu391%2Frpdf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxinyu391%2Frpdf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f2999fcbc15e3e82ade2ddacc09c709721af614 [INFO] checking xinyu391/rpdf against try#3857be5045fe74bd0f296f6f4c23db10f8857f73 for pr-156807 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxinyu391%2Frpdf" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xinyu391/rpdf [INFO] finished tweaking git repo https://github.com/xinyu391/rpdf [INFO] tweaked toml for git repo https://github.com/xinyu391/rpdf written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xinyu391/rpdf on toolchain 3857be5045fe74bd0f296f6f4c23db10f8857f73 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xinyu391/rpdf 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" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded adler32 v1.0.4 [INFO] [stderr] Downloaded inflate v0.4.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66510a08fcf8acc62cd2e4eb9d7c354686d93155b4aa6598355c30d9f4f546f0 [INFO] running `Command { std: "docker" "start" "-a" "66510a08fcf8acc62cd2e4eb9d7c354686d93155b4aa6598355c30d9f4f546f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66510a08fcf8acc62cd2e4eb9d7c354686d93155b4aa6598355c30d9f4f546f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66510a08fcf8acc62cd2e4eb9d7c354686d93155b4aa6598355c30d9f4f546f0", kill_on_drop: false }` [INFO] [stdout] 66510a08fcf8acc62cd2e4eb9d7c354686d93155b4aa6598355c30d9f4f546f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e2fbd07c0e831ee06c0b32475a2e18e76328da1b57811a32b9331d6179cb462 [INFO] running `Command { std: "docker" "start" "-a" "2e2fbd07c0e831ee06c0b32475a2e18e76328da1b57811a32b9331d6179cb462", kill_on_drop: false }` [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking rpdf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ErrorKind` and `Error` [INFO] [stdout] --> src/parse.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OBJ_BEGIN, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ObjBegin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OBJ_END, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ObjEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ARRAY_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ARRAY_END, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | STREAM_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | STREAM_END, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | DICT_END, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `DictEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | DICT_BEGIN, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `DictBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:309:37 [INFO] [stdout] | [INFO] [stdout] 309 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:313:49 [INFO] [stdout] | [INFO] [stdout] 313 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:316:61 [INFO] [stdout] | [INFO] [stdout] 316 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | b'0'...b'9' => Ok(c0 - b'0'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | b'a'...b'z' => Ok(c0 - b'a' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | b'A'...b'Z' => Ok(c0 - b'A' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | b'0'...b'9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `Error` [INFO] [stdout] --> src/parse.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OBJ_BEGIN, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ObjBegin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OBJ_END, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ObjEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ARRAY_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ARRAY_END, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | STREAM_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | STREAM_END, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | DICT_END, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `DictEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | DICT_BEGIN, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `DictBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:309:37 [INFO] [stdout] | [INFO] [stdout] 309 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:313:49 [INFO] [stdout] | [INFO] [stdout] 313 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:316:61 [INFO] [stdout] | [INFO] [stdout] 316 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | b'0'...b'9' => Ok(c0 - b'0'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | b'a'...b'z' => Ok(c0 - b'a' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | b'A'...b'Z' => Ok(c0 - b'A' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | b'0'...b'9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/filter.rs:11:59 [INFO] [stdout] | [INFO] [stdout] 11 | return inflate::inflate_bytes_zlib(data).map_err(|err|Error::new(ErrorKind::Other,"")); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parse.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn from(err: io::Error) -> ParseError { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/filter.rs:11:59 [INFO] [stdout] | [INFO] [stdout] 11 | return inflate::inflate_bytes_zlib(data).map_err(|err|Error::new(ErrorKind::Other,"")); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parse.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn from(err: io::Error) -> ParseError { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | Err(e) => Err(ParseError::new("read error")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/parse.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | if let Ok(n) = buf_reader.read_until(b'>', &mut buf) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | Err(e) => Token::ERROR(ParseError::new("from_utf8 read name")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | Err(e) => Err(ParseError::new("read error")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/parse.rs:430:16 [INFO] [stdout] | [INFO] [stdout] 430 | Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/parse.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | if let Ok(n) = buf_reader.read_until(b'>', &mut buf) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | Err(e) => Token::ERROR(ParseError::new("from_utf8 read name")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/parse.rs:430:16 [INFO] [stdout] | [INFO] [stdout] 430 | Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pdf.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pdf.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:198:40 [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(Value::REF(n0, n1)) = kids.get(pn as usize) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | Some(Value::REF(n0, n1)) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:228:36 [INFO] [stdout] | [INFO] [stdout] 228 | if let Some(Value::REF(n0, n1)) = trailer.get(PDF_NAME_Root) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/pdf.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | for (key, obj) in &mut pdf.obj_list { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:242:52 [INFO] [stdout] | [INFO] [stdout] 242 | if let Some(Value::REF(n0, n1)) = dict.get(PDF_NAME_Root) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pdf.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/pdf.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:198:40 [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(Value::REF(n0, n1)) = kids.get(pn as usize) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | Some(Value::REF(n0, n1)) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:228:36 [INFO] [stdout] | [INFO] [stdout] 228 | if let Some(Value::REF(n0, n1)) = trailer.get(PDF_NAME_Root) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/pdf.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | for (key, obj) in &mut pdf.obj_list { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n1` [INFO] [stdout] --> src/pdf.rs:242:52 [INFO] [stdout] | [INFO] [stdout] 242 | if let Some(Value::REF(n0, n1)) = dict.get(PDF_NAME_Root) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_n1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 302 | ... _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pdf.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 283 | ... Some(Value::NAME(fs)) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 294 | ... Some(Value::ARRAY(array)) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 297 | ... Some(n) => { [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 301 | ... None => (), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 302 | ... _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fs` [INFO] [stdout] --> src/pdf.rs:281:49 [INFO] [stdout] | [INFO] [stdout] 281 | ... let fs = String::from(PDF_NAME_FlateDecode); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/pdf.rs:294:67 [INFO] [stdout] | [INFO] [stdout] 294 | ... Some(Value::ARRAY(array)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 302 | ... _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/pdf.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 283 | ... Some(Value::NAME(fs)) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 294 | ... Some(Value::ARRAY(array)) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 297 | ... Some(n) => { [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 301 | ... None => (), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 302 | ... _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tk` [INFO] [stdout] --> src/pdf.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | ... let tk = read_token(buf_reader); // peek to read [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pdf.rs:472:26 [INFO] [stdout] | [INFO] [stdout] 472 | Token::ERROR(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pwd` [INFO] [stdout] --> src/lib.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn open_with_pwd(path:&str, pwd:&str)->io::Result{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pwd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fs` [INFO] [stdout] --> src/pdf.rs:281:49 [INFO] [stdout] | [INFO] [stdout] 281 | ... let fs = String::from(PDF_NAME_FlateDecode); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/pdf.rs:294:67 [INFO] [stdout] | [INFO] [stdout] 294 | ... Some(Value::ARRAY(array)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Type` is never used [INFO] [stdout] --> src/pdf.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const PDF_NAME_Type: &str = "Type"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Parent` is never used [INFO] [stdout] --> src/pdf.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const PDF_NAME_Parent: &str = "Parent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Resources` is never used [INFO] [stdout] --> src/pdf.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const PDF_NAME_Resources: &str = "Resources"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Font` is never used [INFO] [stdout] --> src/pdf.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const PDF_NAME_Font: &str = "Font"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `genid` are never read [INFO] [stdout] --> src/pdf.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Obj { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 35 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 36 | offset: i32, [INFO] [stdout] 37 | genid: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fill` is never used [INFO] [stdout] --> src/pdf.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl Obj { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn fill() -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/pdf.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Pdf { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 66 | version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pdf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None` and `WORD` are never constructed [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 11 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | WORD, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msg` is never read [INFO] [stdout] --> src/parse.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ParseError { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 32 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decode` is never used [INFO] [stdout] --> src/parse.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl Stream { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tk` [INFO] [stdout] --> src/pdf.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | ... let tk = read_token(buf_reader); // peek to read [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Root` should have an upper case name [INFO] [stdout] --> src/pdf.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const PDF_NAME_Root: &str = "Root"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 19 - const PDF_NAME_Root: &str = "Root"; [INFO] [stdout] 19 + const PDF_NAME_ROOT: &str = "Root"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Type` should have an upper case name [INFO] [stdout] --> src/pdf.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const PDF_NAME_Type: &str = "Type"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_TYPE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Length` should have an upper case name [INFO] [stdout] --> src/pdf.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const PDF_NAME_Length: &str = "Length"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - const PDF_NAME_Length: &str = "Length"; [INFO] [stdout] 21 + const PDF_NAME_LENGTH: &str = "Length"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_FlateDecode` should have an upper case name [INFO] [stdout] --> src/pdf.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const PDF_NAME_FlateDecode: &str = "FlateDecode"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - const PDF_NAME_FlateDecode: &str = "FlateDecode"; [INFO] [stdout] 22 + const PDF_NAME_FLATE_DECODE: &str = "FlateDecode"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Filter` should have an upper case name [INFO] [stdout] --> src/pdf.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const PDF_NAME_Filter: &str = "Filter"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 23 - const PDF_NAME_Filter: &str = "Filter"; [INFO] [stdout] 23 + const PDF_NAME_FILTER: &str = "Filter"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Pages` should have an upper case name [INFO] [stdout] --> src/pdf.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const PDF_NAME_Pages: &str = "Pages"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 24 - const PDF_NAME_Pages: &str = "Pages"; [INFO] [stdout] 24 + const PDF_NAME_PAGES: &str = "Pages"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Count` should have an upper case name [INFO] [stdout] --> src/pdf.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const PDF_NAME_Count: &str = "Count"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 25 - const PDF_NAME_Count: &str = "Count"; [INFO] [stdout] 25 + const PDF_NAME_COUNT: &str = "Count"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pdf.rs:472:26 [INFO] [stdout] | [INFO] [stdout] 472 | Token::ERROR(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Kids` should have an upper case name [INFO] [stdout] --> src/pdf.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const PDF_NAME_Kids: &str = "Kids"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 26 - const PDF_NAME_Kids: &str = "Kids"; [INFO] [stdout] 26 + const PDF_NAME_KIDS: &str = "Kids"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pwd` [INFO] [stdout] --> src/lib.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn open_with_pwd(path:&str, pwd:&str)->io::Result{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pwd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_MediaBox` should have an upper case name [INFO] [stdout] --> src/pdf.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const PDF_NAME_MediaBox: &str = "MediaBox"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 27 - const PDF_NAME_MediaBox: &str = "MediaBox"; [INFO] [stdout] 27 + const PDF_NAME_MEDIA_BOX: &str = "MediaBox"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Contents` should have an upper case name [INFO] [stdout] --> src/pdf.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const PDF_NAME_Contents: &str = "Contents"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 28 - const PDF_NAME_Contents: &str = "Contents"; [INFO] [stdout] 28 + const PDF_NAME_CONTENTS: &str = "Contents"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Parent` should have an upper case name [INFO] [stdout] --> src/pdf.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const PDF_NAME_Parent: &str = "Parent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_PARENT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Resources` should have an upper case name [INFO] [stdout] --> src/pdf.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const PDF_NAME_Resources: &str = "Resources"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_RESOURCES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Type` is never used [INFO] [stdout] --> src/pdf.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const PDF_NAME_Type: &str = "Type"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Parent` is never used [INFO] [stdout] --> src/pdf.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const PDF_NAME_Parent: &str = "Parent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Resources` is never used [INFO] [stdout] --> src/pdf.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const PDF_NAME_Resources: &str = "Resources"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Font` is never used [INFO] [stdout] --> src/pdf.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const PDF_NAME_Font: &str = "Font"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Font` should have an upper case name [INFO] [stdout] --> src/pdf.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const PDF_NAME_Font: &str = "Font"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_FONT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pdf.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | buf_reader.seek(SeekFrom::End(-32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 104 | let _ = buf_reader.seek(SeekFrom::End(-32)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `genid` are never read [INFO] [stdout] --> src/pdf.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Obj { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 35 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 36 | offset: i32, [INFO] [stdout] 37 | genid: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fill` is never used [INFO] [stdout] --> src/pdf.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl Obj { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn fill() -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/pdf.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Pdf { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 66 | version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pdf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None` and `WORD` are never constructed [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 11 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | WORD, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msg` is never read [INFO] [stdout] --> src/parse.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ParseError { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 32 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decode` is never used [INFO] [stdout] --> src/parse.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl Stream { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 359 | buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Root` should have an upper case name [INFO] [stdout] --> src/pdf.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const PDF_NAME_Root: &str = "Root"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 19 - const PDF_NAME_Root: &str = "Root"; [INFO] [stdout] 19 + const PDF_NAME_ROOT: &str = "Root"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Type` should have an upper case name [INFO] [stdout] --> src/pdf.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const PDF_NAME_Type: &str = "Type"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_TYPE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Length` should have an upper case name [INFO] [stdout] --> src/pdf.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const PDF_NAME_Length: &str = "Length"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - const PDF_NAME_Length: &str = "Length"; [INFO] [stdout] 21 + const PDF_NAME_LENGTH: &str = "Length"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_FlateDecode` should have an upper case name [INFO] [stdout] --> src/pdf.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const PDF_NAME_FlateDecode: &str = "FlateDecode"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - const PDF_NAME_FlateDecode: &str = "FlateDecode"; [INFO] [stdout] 22 + const PDF_NAME_FLATE_DECODE: &str = "FlateDecode"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Filter` should have an upper case name [INFO] [stdout] --> src/pdf.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const PDF_NAME_Filter: &str = "Filter"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 23 - const PDF_NAME_Filter: &str = "Filter"; [INFO] [stdout] 23 + const PDF_NAME_FILTER: &str = "Filter"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Pages` should have an upper case name [INFO] [stdout] --> src/pdf.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const PDF_NAME_Pages: &str = "Pages"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 24 - const PDF_NAME_Pages: &str = "Pages"; [INFO] [stdout] 24 + const PDF_NAME_PAGES: &str = "Pages"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Count` should have an upper case name [INFO] [stdout] --> src/pdf.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const PDF_NAME_Count: &str = "Count"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 25 - const PDF_NAME_Count: &str = "Count"; [INFO] [stdout] 25 + const PDF_NAME_COUNT: &str = "Count"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Kids` should have an upper case name [INFO] [stdout] --> src/pdf.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const PDF_NAME_Kids: &str = "Kids"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 26 - const PDF_NAME_Kids: &str = "Kids"; [INFO] [stdout] 26 + const PDF_NAME_KIDS: &str = "Kids"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_MediaBox` should have an upper case name [INFO] [stdout] --> src/pdf.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const PDF_NAME_MediaBox: &str = "MediaBox"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 27 - const PDF_NAME_MediaBox: &str = "MediaBox"; [INFO] [stdout] 27 + const PDF_NAME_MEDIA_BOX: &str = "MediaBox"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Contents` should have an upper case name [INFO] [stdout] --> src/pdf.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const PDF_NAME_Contents: &str = "Contents"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 28 - const PDF_NAME_Contents: &str = "Contents"; [INFO] [stdout] 28 + const PDF_NAME_CONTENTS: &str = "Contents"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Parent` should have an upper case name [INFO] [stdout] --> src/pdf.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const PDF_NAME_Parent: &str = "Parent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_PARENT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Resources` should have an upper case name [INFO] [stdout] --> src/pdf.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const PDF_NAME_Resources: &str = "Resources"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_RESOURCES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PDF_NAME_Font` should have an upper case name [INFO] [stdout] --> src/pdf.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const PDF_NAME_Font: &str = "Font"; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_FONT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pdf.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | buf_reader.seek(SeekFrom::End(-32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 104 | let _ = buf_reader.seek(SeekFrom::End(-32)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 359 | buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `Error` [INFO] [stdout] --> src/parse.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OBJ_BEGIN, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ObjBegin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `Error` [INFO] [stdout] --> src/parse.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OBJ_END, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ObjEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ARRAY_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ARRAY_END, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | STREAM_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | STREAM_END, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | DICT_END, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `DictEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | DICT_BEGIN, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `DictBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OBJ_BEGIN, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ObjBegin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OBJ_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OBJ_END, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ObjEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:309:37 [INFO] [stdout] | [INFO] [stdout] 309 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ARRAY_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ARRAY_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ARRAY_END, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ArrayEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:313:49 [INFO] [stdout] | [INFO] [stdout] 313 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | STREAM_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:316:61 [INFO] [stdout] | [INFO] [stdout] 316 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STREAM_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | STREAM_END, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `StreamEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_END` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | DICT_END, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `DictEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | b'0'...b'9' => Ok(c0 - b'0'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DICT_BEGIN` should have an upper camel case name [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | DICT_BEGIN, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `DictBegin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | b'a'...b'z' => Ok(c0 - b'a' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | b'A'...b'Z' => Ok(c0 - b'A' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:309:37 [INFO] [stdout] | [INFO] [stdout] 309 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | b'0'...b'9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:313:49 [INFO] [stdout] | [INFO] [stdout] 313 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:316:61 [INFO] [stdout] | [INFO] [stdout] 316 | ... b'0'...b'7' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | b'0'...b'9' => Ok(c0 - b'0'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | b'a'...b'z' => Ok(c0 - b'a' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | b'A'...b'Z' => Ok(c0 - b'A' + 10), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/parse.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | b'0'...b'9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parse.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn from(err: io::Error) -> ParseError { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | Err(e) => Err(ParseError::new("read error")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/parse.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | if let Ok(n) = buf_reader.read_until(b'>', &mut buf) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parse.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn from(err: io::Error) -> ParseError { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | Err(e) => Token::ERROR(ParseError::new("from_utf8 read name")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/parse.rs:430:16 [INFO] [stdout] | [INFO] [stdout] 430 | Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Token` is never used [INFO] [stdout] --> src/parse.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseError` is never constructed [INFO] [stdout] --> src/parse.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parse.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ParseError { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(msg: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/parse.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dict` is never constructed [INFO] [stdout] --> src/parse.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Dict { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `get` are never used [INFO] [stdout] --> src/parse.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl Dict { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn push(&mut self, key: String, val: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get(&self, key: &str) -> Option<&Value> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stream` is never constructed [INFO] [stdout] --> src/parse.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct Stream { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `decode` are never used [INFO] [stdout] --> src/parse.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl Stream { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 107 | pub fn new(data: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `peek_token` is never used [INFO] [stdout] --> src/parse.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn peek_token(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_byte` is never used [INFO] [stdout] --> src/parse.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn read_byte(buf_reader: &mut BufReader) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_token` is never used [INFO] [stdout] --> src/parse.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn read_token(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_token` is never used [INFO] [stdout] --> src/parse.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn to_token(s: String) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_stream` is never used [INFO] [stdout] --> src/parse.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn read_stream(buf_reader: &mut BufReader, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_number` is never used [INFO] [stdout] --> src/parse.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn read_number(buf_reader: &mut BufReader, c: u8) -> Token { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_hex_string` is never used [INFO] [stdout] --> src/parse.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn read_hex_string(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string` is never used [INFO] [stdout] --> src/parse.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | pub fn read_string(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unread_bytes` is never used [INFO] [stdout] --> src/parse.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn unread_bytes(buf_reader: &mut BufReader, n :i64){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_name` is never used [INFO] [stdout] --> src/parse.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn read_name(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_to_char` is never used [INFO] [stdout] --> src/parse.rs:404:4 [INFO] [stdout] | [INFO] [stdout] 404 | fn hex_to_char(c0: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_comment` is never used [INFO] [stdout] --> src/parse.rs:412:8 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn skip_comment(buf_reader: &mut BufReader) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_white` is never used [INFO] [stdout] --> src/parse.rs:426:8 [INFO] [stdout] | [INFO] [stdout] 426 | pub fn skip_white(buf_reader: &mut BufReader) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_white` is never used [INFO] [stdout] --> src/parse.rs:441:8 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn is_white(ch: u8) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_delimiter` is never used [INFO] [stdout] --> src/parse.rs:453:4 [INFO] [stdout] | [INFO] [stdout] 453 | fn is_delimiter(c: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_number` is never used [INFO] [stdout] --> src/parse.rs:470:8 [INFO] [stdout] | [INFO] [stdout] 470 | pub fn is_number(ch: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | Err(e) => Err(ParseError::new("read error")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/parse.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | if let Ok(n) = buf_reader.read_until(b'>', &mut buf) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | Err(e) => Token::ERROR(ParseError::new("from_utf8 read name")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/parse.rs:430:16 [INFO] [stdout] | [INFO] [stdout] 430 | Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Token` is never used [INFO] [stdout] --> src/parse.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseError` is never constructed [INFO] [stdout] --> src/parse.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parse.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ParseError { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(msg: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/parse.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dict` is never constructed [INFO] [stdout] --> src/parse.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Dict { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `get` are never used [INFO] [stdout] --> src/parse.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl Dict { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn push(&mut self, key: String, val: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get(&self, key: &str) -> Option<&Value> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stream` is never constructed [INFO] [stdout] --> src/parse.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct Stream { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `decode` are never used [INFO] [stdout] --> src/parse.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl Stream { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 107 | pub fn new(data: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `peek_token` is never used [INFO] [stdout] --> src/parse.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn peek_token(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_byte` is never used [INFO] [stdout] --> src/parse.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn read_byte(buf_reader: &mut BufReader) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_token` is never used [INFO] [stdout] --> src/parse.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn read_token(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_token` is never used [INFO] [stdout] --> src/parse.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn to_token(s: String) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_stream` is never used [INFO] [stdout] --> src/parse.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn read_stream(buf_reader: &mut BufReader, size: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_number` is never used [INFO] [stdout] --> src/parse.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn read_number(buf_reader: &mut BufReader, c: u8) -> Token { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_hex_string` is never used [INFO] [stdout] --> src/parse.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn read_hex_string(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string` is never used [INFO] [stdout] --> src/parse.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | pub fn read_string(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unread_bytes` is never used [INFO] [stdout] --> src/parse.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn unread_bytes(buf_reader: &mut BufReader, n :i64){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_name` is never used [INFO] [stdout] --> src/parse.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn read_name(buf_reader: &mut BufReader) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_to_char` is never used [INFO] [stdout] --> src/parse.rs:404:4 [INFO] [stdout] | [INFO] [stdout] 404 | fn hex_to_char(c0: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_comment` is never used [INFO] [stdout] --> src/parse.rs:412:8 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn skip_comment(buf_reader: &mut BufReader) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_white` is never used [INFO] [stdout] --> src/parse.rs:426:8 [INFO] [stdout] | [INFO] [stdout] 426 | pub fn skip_white(buf_reader: &mut BufReader) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_white` is never used [INFO] [stdout] --> src/parse.rs:441:8 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn is_white(ch: u8) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_delimiter` is never used [INFO] [stdout] --> src/parse.rs:453:4 [INFO] [stdout] | [INFO] [stdout] 453 | fn is_delimiter(c: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_number` is never used [INFO] [stdout] --> src/parse.rs:470:8 [INFO] [stdout] | [INFO] [stdout] 470 | pub fn is_number(ch: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 359 | buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = buf_reader.seek(SeekFrom::Start(pos)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parse.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 359 | buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 359 | let _ = buf_reader.seek(SeekFrom::Current(-n)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "2e2fbd07c0e831ee06c0b32475a2e18e76328da1b57811a32b9331d6179cb462", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e2fbd07c0e831ee06c0b32475a2e18e76328da1b57811a32b9331d6179cb462", kill_on_drop: false }` [INFO] [stdout] 2e2fbd07c0e831ee06c0b32475a2e18e76328da1b57811a32b9331d6179cb462