[INFO] fetching crate screenplay-doc-parser-rs 0.1.10... [INFO] testing screenplay-doc-parser-rs-0.1.10 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate screenplay-doc-parser-rs 0.1.10 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate screenplay-doc-parser-rs 0.1.10 [INFO] finished tweaking crates.io crate screenplay-doc-parser-rs 0.1.10 [INFO] tweaked toml for crates.io crate screenplay-doc-parser-rs 0.1.10 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate screenplay-doc-parser-rs 0.1.10 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate screenplay-doc-parser-rs 0.1.10 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2f5f540be0be107d2ca3e5fc5b490f91e5bc906d9d20f87151d7daf42f5ac3e [INFO] running `Command { std: "docker" "start" "-a" "c2f5f540be0be107d2ca3e5fc5b490f91e5bc906d9d20f87151d7daf42f5ac3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2f5f540be0be107d2ca3e5fc5b490f91e5bc906d9d20f87151d7daf42f5ac3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2f5f540be0be107d2ca3e5fc5b490f91e5bc906d9d20f87151d7daf42f5ac3e", kill_on_drop: false }` [INFO] [stdout] c2f5f540be0be107d2ca3e5fc5b490f91e5bc906d9d20f87151d7daf42f5ac3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b2bf13824a15ac78d5e83ffe2facf28d95c2fc1530026fa781f0ed74bcb2998 [INFO] running `Command { std: "docker" "start" "-a" "2b2bf13824a15ac78d5e83ffe2facf28d95c2fc1530026fa781f0ed74bcb2998", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling dateparser v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling screenplay-doc-parser-rs v0.1.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/reports.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] 17 + ) -> Option > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1095:39 [INFO] [stdout] | [INFO] [stdout] 1095 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1095 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1095 + let scenes_within_page_range: Vec<_ > = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1116:39 [INFO] [stdout] | [INFO] [stdout] 1116 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1116 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1116 + let scenes_within_page_range: Vec<_ > = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/screenplay_document.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/screenplay_document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | time::{Instant, }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/pdf_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/pdf_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pdf_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/pdf_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/pdf_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLockReadGuard` [INFO] [stdout] --> src/pdf_parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLockReadGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::panicking` [INFO] [stdout] --> src/pdf_parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread::panicking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/pdf_parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pdf_parser.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/reports.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | .map(|(s, scn)| &scn.story_locations) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:190:68 [INFO] [stdout] | [INFO] [stdout] 190 | let all_locations_vec: Vec<_> = all_locations.iter().map(|(id, scn)| id).collect(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | .filter_map(|(scene_id, scene)| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/reports.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | .filter(|(coord, ln)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/reports.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | let Some((scene_id, scene)) = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:542:26 [INFO] [stdout] | [INFO] [stdout] 542 | for (scn_id, scn) in &filtered { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_id` [INFO] [stdout] --> src/reports.rs:622:26 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_a_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_id` [INFO] [stdout] --> src/reports.rs:622:41 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_b_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:745:26 [INFO] [stdout] | [INFO] [stdout] 745 | for (scn_id, scn) in &scenes_in_range { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:960:10 [INFO] [stdout] | [INFO] [stdout] 960 | for (scene_id, checked_scene) in scene_ids { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1118:19 [INFO] [stdout] | [INFO] [stdout] 1118 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdfdoc` [INFO] [stdout] --> src/pdf_parser.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pdfdoc: &pdf_document::PDFDocument, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdfdoc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_pos_vec` [INFO] [stdout] --> src/pdf_parser.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_pos_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines_count` [INFO] [stdout] --> src/pdf_parser.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut lines_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page` [INFO] [stdout] --> src/pdf_parser.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | for page in &pdfdoc.pages { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_page` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/pdf_parser.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | for ln in &page.lines { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/pdf_parser.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | if let Some(word) = ln.words.first() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_freq_map` [INFO] [stdout] --> src/pdf_parser.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut x_freq_map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_freq_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/pdf_parser.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | for entry in x_pos_vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rounded` [INFO] [stdout] --> src/pdf_parser.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let rounded = entry.round() as i32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_ent` [INFO] [stdout] --> src/pdf_parser.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let new_ent = x_freq_map.entry(rounded).or_insert(0); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_freq_keys` [INFO] [stdout] --> src/pdf_parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut x_freq_keys: Vec = x_freq_map.keys().cloned().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_freq_keys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fk` [INFO] [stdout] --> src/pdf_parser.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | for fk in &x_freq_keys { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/pdf_parser.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let v = x_freq_map.get(&fk); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/pdf_parser.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(freq) = v { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fr` [INFO] [stdout] --> src/pdf_parser.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | let fr = *freq; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_line` [INFO] [stdout] --> src/pdf_parser.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | new_line: &screenplay_document::Line, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_of_day_strs` [INFO] [stdout] --> src/pdf_parser.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | time_of_day_strs: &screenplay_document::TimeOfDayCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_of_day_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment_strs` [INFO] [stdout] --> src/pdf_parser.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | environment_strs: &screenplay_document::EnvironmentStrings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_marker` [INFO] [stdout] --> src/pdf_parser.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | r_marker: &String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf_parser.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 159 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ------------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 162 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rightedge` [INFO] [stdout] --> src/pdf_parser.rs:298:21 [INFO] [stdout] | [INFO] [stdout] 298 | let rightedge: f64 = wordwidth + pdf_word.position.x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rightedge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut line_height: f64 = 12.0; //This line height could be identified either here in-line or in [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut current_resolution: f64 = 72.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_l_idx` [INFO] [stdout] --> src/pdf_parser.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | for (pdf_l_idx, pdf_line) in pdf_page.lines.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_l_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.17s [INFO] running `Command { std: "docker" "inspect" "2b2bf13824a15ac78d5e83ffe2facf28d95c2fc1530026fa781f0ed74bcb2998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b2bf13824a15ac78d5e83ffe2facf28d95c2fc1530026fa781f0ed74bcb2998", kill_on_drop: false }` [INFO] [stdout] 2b2bf13824a15ac78d5e83ffe2facf28d95c2fc1530026fa781f0ed74bcb2998 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d7d9187db02e1c609497c272eb1a4b614b86cbbbd2c20ce706c27c6be55b1b6 [INFO] running `Command { std: "docker" "start" "-a" "8d7d9187db02e1c609497c272eb1a4b614b86cbbbd2c20ce706c27c6be55b1b6", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/reports.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] 17 + ) -> Option > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1095:39 [INFO] [stdout] | [INFO] [stdout] 1095 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1095 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1095 + let scenes_within_page_range: Vec<_ > = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1116:39 [INFO] [stdout] | [INFO] [stdout] 1116 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1116 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1116 + let scenes_within_page_range: Vec<_ > = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/screenplay_document.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/screenplay_document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | time::{Instant, }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/pdf_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/pdf_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pdf_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/pdf_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/pdf_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLockReadGuard` [INFO] [stdout] --> src/pdf_parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLockReadGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::panicking` [INFO] [stdout] --> src/pdf_parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread::panicking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/pdf_parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pdf_parser.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/reports.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | .map(|(s, scn)| &scn.story_locations) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:190:68 [INFO] [stdout] | [INFO] [stdout] 190 | let all_locations_vec: Vec<_> = all_locations.iter().map(|(id, scn)| id).collect(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | .filter_map(|(scene_id, scene)| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/reports.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | .filter(|(coord, ln)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/reports.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | let Some((scene_id, scene)) = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:542:26 [INFO] [stdout] | [INFO] [stdout] 542 | for (scn_id, scn) in &filtered { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_id` [INFO] [stdout] --> src/reports.rs:622:26 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_a_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_id` [INFO] [stdout] --> src/reports.rs:622:41 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_b_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:745:26 [INFO] [stdout] | [INFO] [stdout] 745 | for (scn_id, scn) in &scenes_in_range { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:960:10 [INFO] [stdout] | [INFO] [stdout] 960 | for (scene_id, checked_scene) in scene_ids { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1118:19 [INFO] [stdout] | [INFO] [stdout] 1118 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdfdoc` [INFO] [stdout] --> src/pdf_parser.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pdfdoc: &pdf_document::PDFDocument, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdfdoc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_pos_vec` [INFO] [stdout] --> src/pdf_parser.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_pos_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines_count` [INFO] [stdout] --> src/pdf_parser.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut lines_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page` [INFO] [stdout] --> src/pdf_parser.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | for page in &pdfdoc.pages { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_page` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/pdf_parser.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | for ln in &page.lines { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/pdf_parser.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | if let Some(word) = ln.words.first() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_freq_map` [INFO] [stdout] --> src/pdf_parser.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut x_freq_map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_freq_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/pdf_parser.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | for entry in x_pos_vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rounded` [INFO] [stdout] --> src/pdf_parser.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let rounded = entry.round() as i32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_ent` [INFO] [stdout] --> src/pdf_parser.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let new_ent = x_freq_map.entry(rounded).or_insert(0); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_freq_keys` [INFO] [stdout] --> src/pdf_parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut x_freq_keys: Vec = x_freq_map.keys().cloned().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_freq_keys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fk` [INFO] [stdout] --> src/pdf_parser.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | for fk in &x_freq_keys { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/pdf_parser.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let v = x_freq_map.get(&fk); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/pdf_parser.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(freq) = v { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fr` [INFO] [stdout] --> src/pdf_parser.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | let fr = *freq; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_line` [INFO] [stdout] --> src/pdf_parser.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | new_line: &screenplay_document::Line, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_of_day_strs` [INFO] [stdout] --> src/pdf_parser.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | time_of_day_strs: &screenplay_document::TimeOfDayCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_of_day_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment_strs` [INFO] [stdout] --> src/pdf_parser.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | environment_strs: &screenplay_document::EnvironmentStrings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_marker` [INFO] [stdout] --> src/pdf_parser.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | r_marker: &String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf_parser.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 159 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ------------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 162 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling screenplay-doc-parser-rs v0.1.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `rightedge` [INFO] [stdout] --> src/pdf_parser.rs:298:21 [INFO] [stdout] | [INFO] [stdout] 298 | let rightedge: f64 = wordwidth + pdf_word.position.x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rightedge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut line_height: f64 = 12.0; //This line height could be identified either here in-line or in [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut current_resolution: f64 = 72.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_l_idx` [INFO] [stdout] --> src/pdf_parser.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | for (pdf_l_idx, pdf_line) in pdf_page.lines.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_l_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/reports.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] 17 + ) -> Option > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1095:39 [INFO] [stdout] | [INFO] [stdout] 1095 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1095 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1095 + let scenes_within_page_range: Vec<_ > = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1116:39 [INFO] [stdout] | [INFO] [stdout] 1116 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1116 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1116 + let scenes_within_page_range: Vec<_ > = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/screenplay_document.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/screenplay_document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | time::{Instant, }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/pdf_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/pdf_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pdf_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/pdf_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/pdf_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLockReadGuard` [INFO] [stdout] --> src/pdf_parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLockReadGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::panicking` [INFO] [stdout] --> src/pdf_parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread::panicking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/pdf_parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnvironmentStrings` and `TimeOfDayCollection` [INFO] [stdout] --> src/lib.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | screenplay_document::{EnvironmentStrings, SPType, TimeOfDayCollection}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pdf_parser.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mupdf_basic_parser` [INFO] [stdout] --> src/lib.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | mupdf_basic_parser::get_pdf_obj_from_filepath("test_data/VCR2L.pdf".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `mupdf_basic_parser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(feature = "mupdf-basic-parsing")] [INFO] [stdout] | ------------------------------- the item is gated behind the `mupdf-basic-parsing` feature [INFO] [stdout] 10 | pub mod mupdf_basic_parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to make use of source file src/mupdf_basic_parser.rs, use `mod mupdf_basic_parser` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod mupdf_basic_parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/reports.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | .map(|(s, scn)| &scn.story_locations) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:190:68 [INFO] [stdout] | [INFO] [stdout] 190 | let all_locations_vec: Vec<_> = all_locations.iter().map(|(id, scn)| id).collect(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | .filter_map(|(scene_id, scene)| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/reports.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | .filter(|(coord, ln)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/reports.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | let Some((scene_id, scene)) = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:542:26 [INFO] [stdout] | [INFO] [stdout] 542 | for (scn_id, scn) in &filtered { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_id` [INFO] [stdout] --> src/reports.rs:622:26 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_a_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_id` [INFO] [stdout] --> src/reports.rs:622:41 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_b_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:745:26 [INFO] [stdout] | [INFO] [stdout] 745 | for (scn_id, scn) in &scenes_in_range { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:960:10 [INFO] [stdout] | [INFO] [stdout] 960 | for (scene_id, checked_scene) in scene_ids { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1118:19 [INFO] [stdout] | [INFO] [stdout] 1118 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdfdoc` [INFO] [stdout] --> src/pdf_parser.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pdfdoc: &pdf_document::PDFDocument, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdfdoc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_pos_vec` [INFO] [stdout] --> src/pdf_parser.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_pos_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines_count` [INFO] [stdout] --> src/pdf_parser.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut lines_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lines_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page` [INFO] [stdout] --> src/pdf_parser.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | for page in &pdfdoc.pages { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_page` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/pdf_parser.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | for ln in &page.lines { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/pdf_parser.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | if let Some(word) = ln.words.first() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_freq_map` [INFO] [stdout] --> src/pdf_parser.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let mut x_freq_map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_freq_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/pdf_parser.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | for entry in x_pos_vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rounded` [INFO] [stdout] --> src/pdf_parser.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let rounded = entry.round() as i32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rounded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_ent` [INFO] [stdout] --> src/pdf_parser.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let new_ent = x_freq_map.entry(rounded).or_insert(0); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_freq_keys` [INFO] [stdout] --> src/pdf_parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut x_freq_keys: Vec = x_freq_map.keys().cloned().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_freq_keys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fk` [INFO] [stdout] --> src/pdf_parser.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | for fk in &x_freq_keys { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/pdf_parser.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let v = x_freq_map.get(&fk); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/pdf_parser.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(freq) = v { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fr` [INFO] [stdout] --> src/pdf_parser.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | let fr = *freq; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_line` [INFO] [stdout] --> src/pdf_parser.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | new_line: &screenplay_document::Line, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_of_day_strs` [INFO] [stdout] --> src/pdf_parser.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | time_of_day_strs: &screenplay_document::TimeOfDayCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_of_day_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment_strs` [INFO] [stdout] --> src/pdf_parser.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | environment_strs: &screenplay_document::EnvironmentStrings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_marker` [INFO] [stdout] --> src/pdf_parser.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | r_marker: &String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf_parser.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 159 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ------------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 162 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rightedge` [INFO] [stdout] --> src/pdf_parser.rs:298:21 [INFO] [stdout] | [INFO] [stdout] 298 | let rightedge: f64 = wordwidth + pdf_word.position.x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rightedge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut line_height: f64 = 12.0; //This line height could be identified either here in-line or in [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut current_resolution: f64 = 72.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_l_idx` [INFO] [stdout] --> src/pdf_parser.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | for (pdf_l_idx, pdf_line) in pdf_page.lines.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_l_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/lib.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | if let Some(inches) = y_height_inches { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y_height_pts` is never read [INFO] [stdout] --> src/lib.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | let mut y_height_pts = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `screenplay-doc-parser-rs` (lib test) due to 1 previous error; 59 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8d7d9187db02e1c609497c272eb1a4b614b86cbbbd2c20ce706c27c6be55b1b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d7d9187db02e1c609497c272eb1a4b614b86cbbbd2c20ce706c27c6be55b1b6", kill_on_drop: false }` [INFO] [stdout] 8d7d9187db02e1c609497c272eb1a4b614b86cbbbd2c20ce706c27c6be55b1b6