[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 beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxinyu391%2Frpdf" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xinyu391/rpdf on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-1/source/Cargo.toml [INFO] crate git repo https://github.com/xinyu391/rpdf already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29ceea7c992399a5377da1213060d262024c4a35a531a5ecf626e541e19bbeac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "29ceea7c992399a5377da1213060d262024c4a35a531a5ecf626e541e19bbeac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29ceea7c992399a5377da1213060d262024c4a35a531a5ecf626e541e19bbeac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29ceea7c992399a5377da1213060d262024c4a35a531a5ecf626e541e19bbeac", kill_on_drop: false }` [INFO] [stdout] 29ceea7c992399a5377da1213060d262024c4a35a531a5ecf626e541e19bbeac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 850f8f2f853c434418644b96576b7ddd698f4a6a0db2e7d4e362436a4fa4c220 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "850f8f2f853c434418644b96576b7ddd698f4a6a0db2e7d4e362436a4fa4c220", kill_on_drop: false }` [INFO] [stderr] Checking rpdf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ErrorKind`, `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)]` 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)]` 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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` 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] [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] [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] [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] [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] [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] [INFO] [stdout] warning: unused imports: `ErrorKind`, `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)]` 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)]` 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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` 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] [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] [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] [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] [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] [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] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 302 | ... _ => { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [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] = note: `#[warn(unused_variables)]` on by default [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: `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: 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: `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: `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] [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: 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: unreachable pattern [INFO] [stdout] --> src/pdf.rs:302:49 [INFO] [stdout] | [INFO] [stdout] 302 | ... _ => { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [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] = note: `#[warn(unused_variables)]` on by default [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: `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: 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: variant is never constructed: `None` [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WORD` [INFO] [stdout] --> src/parse.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | WORD, [INFO] [stdout] | ^^^^ [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: associated function is never used: `decode` [INFO] [stdout] --> src/parse.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [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: constant is never used: `PDF_NAME_Type` [INFO] [stdout] --> src/pdf.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const PDF_NAME_Type: &str = "Type"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Parent` [INFO] [stdout] --> src/pdf.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const PDF_NAME_Parent: &str = "Parent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Resources` [INFO] [stdout] --> src/pdf.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const PDF_NAME_Resources: &str = "Resources"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Font` [INFO] [stdout] --> src/pdf.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | const PDF_NAME_Font: &str = "Font"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fill` [INFO] [stdout] --> src/pdf.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn fill() -> 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: 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: 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] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_ROOT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_LENGTH` [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] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_FLATE_DECODE` [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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_FILTER` [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] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_PAGES` [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] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_COUNT` [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] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_KIDS` [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] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_MEDIA_BOX` [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] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_CONTENTS` [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 `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WORD` [INFO] [stdout] --> src/parse.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | WORD, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/parse.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Type` [INFO] [stdout] --> src/pdf.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const PDF_NAME_Type: &str = "Type"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Parent` [INFO] [stdout] --> src/pdf.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const PDF_NAME_Parent: &str = "Parent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Resources` [INFO] [stdout] --> src/pdf.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const PDF_NAME_Resources: &str = "Resources"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PDF_NAME_Font` [INFO] [stdout] --> src/pdf.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | const PDF_NAME_Font: &str = "Font"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fill` [INFO] [stdout] --> src/pdf.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn fill() -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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] [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] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_ROOT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_LENGTH` [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] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_FLATE_DECODE` [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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_FILTER` [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] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_PAGES` [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] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_COUNT` [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] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_KIDS` [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] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_MEDIA_BOX` [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] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PDF_NAME_CONTENTS` [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: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `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)]` 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)]` 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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` 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] [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] [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] [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] [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] [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] [INFO] [stdout] warning: unused imports: `ErrorKind`, `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)]` 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)]` 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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` 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] [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] [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] [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] [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] [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] [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] = note: `#[warn(unused_variables)]` on by default [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: `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] = note: `#[warn(unused_variables)]` on by default [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: `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: variant is never constructed: `None` [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OBJ_BEGIN` [INFO] [stdout] --> src/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OBJ_BEGIN, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OBJ_END` [INFO] [stdout] --> src/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OBJ_END, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ARRAY_BEGIN` [INFO] [stdout] --> src/parse.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ARRAY_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ARRAY_END` [INFO] [stdout] --> src/parse.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ARRAY_END, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STREAM_BEGIN` [INFO] [stdout] --> src/parse.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | STREAM_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STREAM_END` [INFO] [stdout] --> src/parse.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | STREAM_END, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R` [INFO] [stdout] --> src/parse.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | R, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WORD` [INFO] [stdout] --> src/parse.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | WORD, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DICT_END` [INFO] [stdout] --> src/parse.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | DICT_END, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DICT_BEGIN` [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | DICT_BEGIN, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BOOL` [INFO] [stdout] --> src/parse.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | BOOL(bool), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NULL` [INFO] [stdout] --> src/parse.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | NULL, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `INTEGER` [INFO] [stdout] --> src/parse.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | INTEGER(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FLOAT` [INFO] [stdout] --> src/parse.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | FLOAT(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NAME` [INFO] [stdout] --> src/parse.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | NAME(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STRING` [INFO] [stdout] --> src/parse.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | STRING(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ERROR` [INFO] [stdout] --> src/parse.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | ERROR(ParseError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parse.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(msg: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `INTEGER` [INFO] [stdout] --> src/parse.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | INTEGER(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BOOL` [INFO] [stdout] --> src/parse.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | BOOL(bool), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `REF` [INFO] [stdout] --> src/parse.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | REF(i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NAME` [INFO] [stdout] --> src/parse.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | NAME(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STRING` [INFO] [stdout] --> src/parse.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | STRING(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NULL` [INFO] [stdout] --> src/parse.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | NULL, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FLOAT` [INFO] [stdout] --> src/parse.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | FLOAT(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ARRAY` [INFO] [stdout] --> src/parse.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | ARRAY(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DICT` [INFO] [stdout] --> src/parse.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | DICT(Dict), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parse.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/parse.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn push(&mut self, key: String, val: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/parse.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get(&self, key: &str) -> Option<&Value> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parse.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn new(data: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/parse.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `peek_token` [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 is never used: `read_byte` [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 is never used: `read_token` [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 is never used: `to_token` [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 is never used: `read_stream` [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 is never used: `read_number` [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 is never used: `read_hex_string` [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 is never used: `read_string` [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 is never used: `unread_bytes` [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 is never used: `read_name` [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 is never used: `hex_to_char` [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 is never used: `skip_comment` [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 is never used: `skip_white` [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 never used: `is_white` [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 never used: `is_delimiter` [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 never used: `is_number` [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: variant is never constructed: `None` [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OBJ_BEGIN` [INFO] [stdout] --> src/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OBJ_BEGIN, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OBJ_END` [INFO] [stdout] --> src/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OBJ_END, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ARRAY_BEGIN` [INFO] [stdout] --> src/parse.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | ARRAY_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ARRAY_END` [INFO] [stdout] --> src/parse.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ARRAY_END, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STREAM_BEGIN` [INFO] [stdout] --> src/parse.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | STREAM_BEGIN, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STREAM_END` [INFO] [stdout] --> src/parse.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | STREAM_END, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R` [INFO] [stdout] --> src/parse.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | R, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WORD` [INFO] [stdout] --> src/parse.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | WORD, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DICT_END` [INFO] [stdout] --> src/parse.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | DICT_END, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DICT_BEGIN` [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | DICT_BEGIN, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BOOL` [INFO] [stdout] --> src/parse.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | BOOL(bool), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NULL` [INFO] [stdout] --> src/parse.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | NULL, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `INTEGER` [INFO] [stdout] --> src/parse.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | INTEGER(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FLOAT` [INFO] [stdout] --> src/parse.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | FLOAT(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NAME` [INFO] [stdout] --> src/parse.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | NAME(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STRING` [INFO] [stdout] --> src/parse.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | STRING(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ERROR` [INFO] [stdout] --> src/parse.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | ERROR(ParseError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parse.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(msg: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `INTEGER` [INFO] [stdout] --> src/parse.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | INTEGER(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BOOL` [INFO] [stdout] --> src/parse.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | BOOL(bool), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `REF` [INFO] [stdout] --> src/parse.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | REF(i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NAME` [INFO] [stdout] --> src/parse.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | NAME(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `STRING` [INFO] [stdout] --> src/parse.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | STRING(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NULL` [INFO] [stdout] --> src/parse.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | NULL, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FLOAT` [INFO] [stdout] --> src/parse.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | FLOAT(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ARRAY` [INFO] [stdout] --> src/parse.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | ARRAY(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DICT` [INFO] [stdout] --> src/parse.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | DICT(Dict), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parse.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/parse.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn push(&mut self, key: String, val: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/parse.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get(&self, key: &str) -> Option<&Value> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parse.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn new(data: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/parse.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn decode(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `peek_token` [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 is never used: `read_byte` [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 is never used: `read_token` [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 is never used: `to_token` [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 is never used: `read_stream` [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 is never used: `read_number` [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 is never used: `read_hex_string` [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 is never used: `read_string` [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 is never used: `unread_bytes` [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 is never used: `read_name` [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 is never used: `hex_to_char` [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 is never used: `skip_comment` [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 is never used: `skip_white` [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 never used: `is_white` [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 never used: `is_delimiter` [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 never used: `is_number` [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 `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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] [INFO] [stdout] [INFO] [stdout] warning: 75 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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] [INFO] [stdout] [INFO] [stdout] warning: 75 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.35s [INFO] running `Command { std: "docker" "inspect" "850f8f2f853c434418644b96576b7ddd698f4a6a0db2e7d4e362436a4fa4c220", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "850f8f2f853c434418644b96576b7ddd698f4a6a0db2e7d4e362436a4fa4c220", kill_on_drop: false }` [INFO] [stdout] 850f8f2f853c434418644b96576b7ddd698f4a6a0db2e7d4e362436a4fa4c220