[INFO] cloning repository https://github.com/hchockarprasad/hypersheets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hchockarprasad/hypersheets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhchockarprasad%2Fhypersheets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhchockarprasad%2Fhypersheets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de6067f2c5400be29660bf57b881b8e5d51da883 [INFO] checking hchockarprasad/hypersheets against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhchockarprasad%2Fhypersheets" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hchockarprasad/hypersheets on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hchockarprasad/hypersheets [INFO] finished tweaking git repo https://github.com/hchockarprasad/hypersheets [INFO] tweaked toml for git repo https://github.com/hchockarprasad/hypersheets written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hchockarprasad/hypersheets 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 045a859b5bc980e0557efdf78942458bb5e815da0807564dd7db1095d08fe278 [INFO] running `Command { std: "docker" "start" "-a" "045a859b5bc980e0557efdf78942458bb5e815da0807564dd7db1095d08fe278", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "045a859b5bc980e0557efdf78942458bb5e815da0807564dd7db1095d08fe278", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "045a859b5bc980e0557efdf78942458bb5e815da0807564dd7db1095d08fe278", kill_on_drop: false }` [INFO] [stdout] 045a859b5bc980e0557efdf78942458bb5e815da0807564dd7db1095d08fe278 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e04cf7b4bc3dd414920dcf44ed1af02e782d5e9038707a4bf1c4cbe747d9ece [INFO] running `Command { std: "docker" "start" "-a" "2e04cf7b4bc3dd414920dcf44ed1af02e782d5e9038707a4bf1c4cbe747d9ece", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.44 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.68 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling wasm-bindgen v0.2.68 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.68 [INFO] [stderr] Checking js-sys v0.3.45 [INFO] [stderr] Checking web-sys v0.3.45 [INFO] [stderr] Checking hypersheets v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `JsCast` is imported redundantly [INFO] [stdout] --> src/canvas.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `JsCast` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use wasm_bindgen::JsCast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `JsCast` is imported redundantly [INFO] [stdout] --> src/canvas.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `JsCast` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use wasm_bindgen::JsCast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/rectangle.rs:183:30 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn flatten_y_at(&self, y: f64) -> Rectangle { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dispatched` [INFO] [stdout] --> src/canvas.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | let dispatched = elm.dispatch_event(&ce).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dispatched` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/rectangle.rs:183:30 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn flatten_y_at(&self, y: f64) -> Rectangle { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rectangle.rs:368:38 [INFO] [stdout] | [INFO] [stdout] 368 | let rec3 = rec1.intersect(rec2, |a, b| None, None); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse` [INFO] [stdout] --> src/events.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(mouse: Point) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rectangle.rs:368:41 [INFO] [stdout] | [INFO] [stdout] 368 | let rec3 = rec1.intersect(rec2, |a, b| None, None); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dispatched` [INFO] [stdout] --> src/canvas.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | let dispatched = elm.dispatch_event(&ce).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dispatched` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Vertical` is named the same as one of the variants of the type `scroll::ScrollBarOrientation` [INFO] [stdout] --> src/scroll.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | ^^^^^^^^ help: to match on the variant, qualify the path: `scroll::ScrollBarOrientation::Vertical` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Horizontal` is named the same as one of the variants of the type `scroll::ScrollBarOrientation` [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: to match on the variant, qualify the path: `scroll::ScrollBarOrientation::Horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | -------- matches any value [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Vertical` [INFO] [stdout] --> src/scroll.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Vertical` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Horizontal` [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_model` [INFO] [stdout] --> src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let data_model = DataModel::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse` [INFO] [stdout] --> src/events.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(mouse: Point) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mouse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `within` is never used [INFO] [stdout] --> src/rectangle.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Within { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 4 | fn within(&self, rect: Rectangle) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rectangle.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 13 | impl Point { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn origin() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn plus(&self, offset_x: f64, offset_y: f64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn minus(&self, offset_x: f64, offset_y: f64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn min(&self, point: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn max(&self, point: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn distance(&self, point: Point) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn eq(&self, point: Point) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn gt(&self, point: Point) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn lt(&self, point: Point) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `center` is never read [INFO] [stdout] --> src/rectangle.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | center: Point, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/rectangle.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 122 | impl Rectangle { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn flatten_x_at(&self, x: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn flatten_y_at(&self, y: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn contains(&self, elm: Box) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn extent(&self) -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn get_corner(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn grow_by(&self, padding: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn shrink_by(&self, padding: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn union(&self, rect: Rectangle) -> Rectangle { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn for_each(&self, iteratee: F, context: Option) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn intersect(&self, target: Rectangle, if_none: F, context: Option) -> Option [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn intersects(&self, rect: Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub fn x(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn y(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, `right`, `bottom`, `width`, and `height` are never read [INFO] [stdout] --> src/rectangle.rs:303:3 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct BoundingRect { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 303 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 304 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] 305 | top: f64, [INFO] [stdout] 306 | right: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 307 | bottom: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 308 | left: f64, [INFO] [stdout] 309 | width: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 310 | height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, `right`, `bottom`, `width`, and `height` are never used [INFO] [stdout] --> src/rectangle.rs:327:10 [INFO] [stdout] | [INFO] [stdout] 313 | impl BoundingRect { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn x(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn y(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub fn right(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub fn bottom(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_bounding_rect` is never used [INFO] [stdout] --> src/canvas.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait CanvasHelper { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 8 | fn get_bounding_rect(&self) -> BoundingRect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Canvas` is never constructed [INFO] [stdout] --> src/canvas.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Canvas { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `init_listeners` are never used [INFO] [stdout] --> src/canvas.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 33 | impl Canvas { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(wrapper: HtmlElement) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn init_listeners(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/cell.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_column_name`, `name`, `get_width`, `get_height`, `set_width`, and `set_height` are never used [INFO] [stdout] --> src/cell.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 12 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn get_column_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn name(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_width(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_height(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn set_width(&mut self, width: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn set_height(&mut self, height: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CellEditor` is never constructed [INFO] [stdout] --> src/celleditor.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CellEditor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/celleditor.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 7 | impl CellEditor { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(container_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_cols_within` is never used [INFO] [stdout] --> src/column.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl ColumnManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_cols_within(&self, col_idx: u8) -> Vec<&Column> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_mouse_point` are never used [INFO] [stdout] --> src/events.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl CustomEventDetail { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(mouse: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn set_mouse_point(&mut self, point: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_custom_event` is never used [INFO] [stdout] --> src/events.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait CustomEvent { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 30 | fn create_custom_event( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `location` is never used [INFO] [stdout] --> src/events.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 39 | pub trait MousePosition { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 40 | fn location(&self, boundary: BoundingRect, zoom_factor: f64) -> Point; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `items` is never read [INFO] [stdout] --> src/model.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DataModel { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | pub items: BTreeMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_cell`, `get_cell`, `get_cells_within`, `get_cells_within_rows`, and `get_cells_within_cols` are never used [INFO] [stdout] --> src/model.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 9 | impl DataModel { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn set_cell(&mut self, cell: Cell) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_cell(&self, col_idx: u8, row_idx: u16) -> Option<&Cell> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_cells_within(&self, col_idx: u8, row_idx: u16) -> Vec<&Cell> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_cells_within_rows(&self, row_idx: u16) -> Vec<&Cell> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_cells_within_cols(&self, col_idx: u8) -> Vec<&Cell> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HyperSheetProperties` is never constructed [INFO] [stdout] --> src/properties.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct HyperSheetProperties { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/properties.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 134 | impl HyperSheetProperties { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 135 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_rows_within` is never used [INFO] [stdout] --> src/row.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl RowManager { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_rows_within(&self, row_idx: u16) -> Vec<&Row> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Vertical` and `Horizontal` are never constructed [INFO] [stdout] --> src/scroll.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ScrollBarOrientation { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 4 | Vertical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Horizontal [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScrollBar` is never constructed [INFO] [stdout] --> src/scroll.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ScrollBar { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScrollBarOption` is never constructed [INFO] [stdout] --> src/scroll.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ScrollBarOption { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrientationHash` is never constructed [INFO] [stdout] --> src/scroll.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct OrientationHash { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Axis` is never constructed [INFO] [stdout] --> src/scroll.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `axis` is never used [INFO] [stdout] --> src/scroll.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const axis: Axis = Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICAL_ORIENTATION_HASH` is never used [INFO] [stdout] --> src/scroll.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const VERTICAL_ORIENTATION_HASH: OrientationHash = OrientationHash { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HORIZONTAL_ORIENTATION_HASH` is never used [INFO] [stdout] --> src/scroll.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const HORIZONTAL_ORIENTATION_HASH: OrientationHash = OrientationHash { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/scroll.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 99 | impl ScrollBar { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 100 | fn new(options: ScrollBarOption) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn set_orientation(&mut self, orientation: ScrollBarOrientation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn get_orientation(&self) -> &ScrollBarOrientation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn set_class_prefix(&mut self, prefix: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_range(&self) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn set_range(&mut self, min: u32, max: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn set_index(&mut self, idx: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn set_scroll(&mut self, idx: u32, scaled: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn short_stop(&self, event: web_sys::Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn on_wheel(&mut self, event: web_sys::Event) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Vertical` should have a snake case name [INFO] [stdout] --> src/scroll.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vertical` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Vertical` is named the same as one of the variants of the type `scroll::ScrollBarOrientation` [INFO] [stdout] --> src/scroll.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | ^^^^^^^^ help: to match on the variant, qualify the path: `scroll::ScrollBarOrientation::Vertical` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Horizontal` should have a snake case name [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Horizontal` is named the same as one of the variants of the type `scroll::ScrollBarOrientation` [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: to match on the variant, qualify the path: `scroll::ScrollBarOrientation::Horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `axis` should have an upper case name [INFO] [stdout] --> src/scroll.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const axis: Axis = Axis { [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `AXIS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | -------- matches any value [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Vertical` [INFO] [stdout] --> src/scroll.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Vertical` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Horizontal` [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_model` [INFO] [stdout] --> src/lib.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let data_model = DataModel::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hypersheets` (lib) due to 3 previous errors; 42 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `within` is never used [INFO] [stdout] --> src/rectangle.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Within { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 4 | fn within(&self, rect: Rectangle) -> bool; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `origin`, `plus`, `distance`, `eq`, `gt`, and `lt` are never used [INFO] [stdout] --> src/rectangle.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 13 | impl Point { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn origin() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn plus(&self, offset_x: f64, offset_y: f64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn distance(&self, point: Point) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn eq(&self, point: Point) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn gt(&self, point: Point) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn lt(&self, point: Point) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `center` is never read [INFO] [stdout] --> src/rectangle.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 119 | center: Point, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/rectangle.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 122 | impl Rectangle { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn flatten_x_at(&self, x: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn flatten_y_at(&self, y: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn contains(&self, elm: Box) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn extent(&self) -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn get_corner(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn grow_by(&self, padding: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn shrink_by(&self, padding: f64) -> Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn union(&self, rect: Rectangle) -> Rectangle { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn for_each(&self, iteratee: F, context: Option) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn intersects(&self, rect: Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub fn x(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn y(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, `right`, `bottom`, `width`, and `height` are never read [INFO] [stdout] --> src/rectangle.rs:303:3 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct BoundingRect { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 303 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 304 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] 305 | top: f64, [INFO] [stdout] 306 | right: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 307 | bottom: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 308 | left: f64, [INFO] [stdout] 309 | width: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 310 | height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, `right`, `bottom`, `width`, and `height` are never used [INFO] [stdout] --> src/rectangle.rs:327:10 [INFO] [stdout] | [INFO] [stdout] 313 | impl BoundingRect { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn x(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn y(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub fn right(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub fn bottom(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_bounding_rect` is never used [INFO] [stdout] --> src/canvas.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait CanvasHelper { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 8 | fn get_bounding_rect(&self) -> BoundingRect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Canvas` is never constructed [INFO] [stdout] --> src/canvas.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Canvas { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `init_listeners` are never used [INFO] [stdout] --> src/canvas.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 33 | impl Canvas { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(wrapper: HtmlElement) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn init_listeners(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/cell.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_column_name`, `name`, `get_width`, `get_height`, `set_width`, and `set_height` are never used [INFO] [stdout] --> src/cell.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 12 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn get_column_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn name(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_width(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_height(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn set_width(&mut self, width: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn set_height(&mut self, height: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CellEditor` is never constructed [INFO] [stdout] --> src/celleditor.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CellEditor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/celleditor.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 7 | impl CellEditor { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(container_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_cols_within` is never used [INFO] [stdout] --> src/column.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl ColumnManager { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_cols_within(&self, col_idx: u8) -> Vec<&Column> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_mouse_point` are never used [INFO] [stdout] --> src/events.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl CustomEventDetail { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(mouse: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn set_mouse_point(&mut self, point: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_custom_event` is never used [INFO] [stdout] --> src/events.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait CustomEvent { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 30 | fn create_custom_event( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `location` is never used [INFO] [stdout] --> src/events.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 39 | pub trait MousePosition { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 40 | fn location(&self, boundary: BoundingRect, zoom_factor: f64) -> Point; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `items` is never read [INFO] [stdout] --> src/model.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DataModel { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | pub items: BTreeMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_cell`, `get_cell`, `get_cells_within`, `get_cells_within_rows`, and `get_cells_within_cols` are never used [INFO] [stdout] --> src/model.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 9 | impl DataModel { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn set_cell(&mut self, cell: Cell) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_cell(&self, col_idx: u8, row_idx: u16) -> Option<&Cell> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_cells_within(&self, col_idx: u8, row_idx: u16) -> Vec<&Cell> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_cells_within_rows(&self, row_idx: u16) -> Vec<&Cell> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_cells_within_cols(&self, col_idx: u8) -> Vec<&Cell> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HyperSheetProperties` is never constructed [INFO] [stdout] --> src/properties.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct HyperSheetProperties { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/properties.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 134 | impl HyperSheetProperties { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 135 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_rows_within` is never used [INFO] [stdout] --> src/row.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl RowManager { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_rows_within(&self, row_idx: u16) -> Vec<&Row> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Vertical` and `Horizontal` are never constructed [INFO] [stdout] --> src/scroll.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ScrollBarOrientation { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 4 | Vertical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Horizontal [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScrollBar` is never constructed [INFO] [stdout] --> src/scroll.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ScrollBar { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScrollBarOption` is never constructed [INFO] [stdout] --> src/scroll.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ScrollBarOption { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrientationHash` is never constructed [INFO] [stdout] --> src/scroll.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct OrientationHash { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Axis` is never constructed [INFO] [stdout] --> src/scroll.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `axis` is never used [INFO] [stdout] --> src/scroll.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const axis: Axis = Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICAL_ORIENTATION_HASH` is never used [INFO] [stdout] --> src/scroll.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const VERTICAL_ORIENTATION_HASH: OrientationHash = OrientationHash { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HORIZONTAL_ORIENTATION_HASH` is never used [INFO] [stdout] --> src/scroll.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const HORIZONTAL_ORIENTATION_HASH: OrientationHash = OrientationHash { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/scroll.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 99 | impl ScrollBar { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 100 | fn new(options: ScrollBarOption) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn set_orientation(&mut self, orientation: ScrollBarOrientation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn get_orientation(&self) -> &ScrollBarOrientation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn set_class_prefix(&mut self, prefix: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_range(&self) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn set_range(&mut self, min: u32, max: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn set_index(&mut self, idx: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn set_scroll(&mut self, idx: u32, scaled: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn short_stop(&self, event: web_sys::Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn on_wheel(&mut self, event: web_sys::Event) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Vertical` should have a snake case name [INFO] [stdout] --> src/scroll.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | Vertical => "Vertical".to_string(), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vertical` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Horizontal` should have a snake case name [INFO] [stdout] --> src/scroll.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | Horizontal => "Horizontal".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `axis` should have an upper case name [INFO] [stdout] --> src/scroll.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | const axis: Axis = Axis { [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `AXIS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hypersheets` (lib test) due to 3 previous errors; 44 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2e04cf7b4bc3dd414920dcf44ed1af02e782d5e9038707a4bf1c4cbe747d9ece", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e04cf7b4bc3dd414920dcf44ed1af02e782d5e9038707a4bf1c4cbe747d9ece", kill_on_drop: false }` [INFO] [stdout] 2e04cf7b4bc3dd414920dcf44ed1af02e782d5e9038707a4bf1c4cbe747d9ece