[INFO] cloning repository https://github.com/DimartX/CG_lab7_gtk-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DimartX/CG_lab7_gtk-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimartX%2FCG_lab7_gtk-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimartX%2FCG_lab7_gtk-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 469cf1c0938812ef6cc4c938ea3c9e2c85b7bc94 [INFO] building DimartX/CG_lab7_gtk-rs against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimartX%2FCG_lab7_gtk-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DimartX/CG_lab7_gtk-rs on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DimartX/CG_lab7_gtk-rs [INFO] finished tweaking git repo https://github.com/DimartX/CG_lab7_gtk-rs [INFO] tweaked toml for git repo https://github.com/DimartX/CG_lab7_gtk-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/DimartX/CG_lab7_gtk-rs 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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4d8f0465137f82f54d6d300c554f7dc87ae18eccaa20affb64d6154880a3899 [INFO] running `Command { std: "docker" "start" "-a" "a4d8f0465137f82f54d6d300c554f7dc87ae18eccaa20affb64d6154880a3899", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4d8f0465137f82f54d6d300c554f7dc87ae18eccaa20affb64d6154880a3899", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4d8f0465137f82f54d6d300c554f7dc87ae18eccaa20affb64d6154880a3899", kill_on_drop: false }` [INFO] [stdout] a4d8f0465137f82f54d6d300c554f7dc87ae18eccaa20affb64d6154880a3899 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c3d22ce812a1a7476bc8ea965e040100d91ea317d4ba7c8b39a6736bba02ee0 [INFO] running `Command { std: "docker" "start" "-a" "2c3d22ce812a1a7476bc8ea965e040100d91ea317d4ba7c8b39a6736bba02ee0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling strum v0.18.0 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-sink v0.3.14 [INFO] [stderr] Compiling futures-core v0.3.14 [INFO] [stderr] Compiling futures-io v0.3.14 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling futures-channel v0.3.14 [INFO] [stderr] Compiling futures-task v0.3.14 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling gio v0.9.1 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling pango v0.9.1 [INFO] [stderr] Compiling cairo-rs v0.9.1 [INFO] [stderr] Compiling gdk-pixbuf v0.9.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling gdk v0.13.2 [INFO] [stderr] Compiling atk v0.9.0 [INFO] [stderr] Compiling gtk v0.9.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling strum_macros v0.18.0 [INFO] [stderr] Compiling futures-macro v0.3.14 [INFO] [stderr] Compiling glib-macros v0.10.1 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling futures-util v0.3.14 [INFO] [stderr] Compiling system-deps v1.3.2 [INFO] [stderr] Compiling glib-sys v0.10.1 [INFO] [stderr] Compiling gobject-sys v0.10.0 [INFO] [stderr] Compiling gio-sys v0.10.1 [INFO] [stderr] Compiling cairo-sys-rs v0.10.0 [INFO] [stderr] Compiling pango-sys v0.10.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.10.0 [INFO] [stderr] Compiling gdk-sys v0.10.0 [INFO] [stderr] Compiling atk-sys v0.10.0 [INFO] [stderr] Compiling gtk-sys v0.10.0 [INFO] [stderr] Compiling futures-executor v0.3.14 [INFO] [stderr] Compiling glib v0.10.3 [INFO] [stderr] Compiling futures v0.3.14 [INFO] [stderr] Compiling lab1 v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/point.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Point_f64` should have an upper camel case name [INFO] [stdout] --> src/point.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Point_f64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PointF64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/handle_draw.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/handle_draw.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Ref` [INFO] [stdout] --> src/handle_draw.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::cell::Ref; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_draw_color_alpha`, `print_text`, `draw_polygon`, and `fill_polygon` are never used [INFO] [stdout] --> src/canvas.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Canvas { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 7 | fn set_draw_color(&mut self, color: Color); [INFO] [stdout] 8 | fn set_draw_color_alpha(&mut self, color: Color, alpha: f64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn print_text(&mut self, p: &Point, text: &str); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn draw_line(&mut self, points: &[Point]); [INFO] [stdout] 13 | fn draw_polygon(&mut self, points: &[Point]); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | fn fill_polygon(&mut self, points: &[Point]); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `gray`, `white`, `red`, `green`, and `blue` are never used [INFO] [stdout] --> src/color.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn gray() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn white() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn red() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn green() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn blue() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `zoom` and `real_zoom` are never read [INFO] [stdout] --> src/figure.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Axis { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | zoom: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | real_zoom: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `zoom`, `draw`, `draw_strokes`, `draw_axis`, and `point_arrow` are never used [INFO] [stdout] --> src/figure.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Axis { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn zoom(&mut self, zoom: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn draw(&self, canvas: &mut CairoCanvas) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn draw_strokes(&self, canvas: &mut CairoCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn draw_axis(&self, canvas: &mut CairoCanvas, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn point_arrow(&self, pre_pt: Point_f64, pt: Point_f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/point.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn from(pt: Point_f64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_in_rectangle` is never used [INFO] [stdout] --> src/point.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn is_in_rectangle(lu: Point_f64, rd: Point_f64, point: Point_f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scaleOx` should have a snake case name [INFO] [stdout] --> src/figure.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn scaleOx(&mut self, scale: f64) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_ox` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scaleOy` should have a snake case name [INFO] [stdout] --> src/figure.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn scaleOy(&mut self, scale: f64) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `cntPoints` should have a snake case name [INFO] [stdout] --> src/state.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub cntPoints: i32, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cnt_points` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveFigureOx` should have a snake case name [INFO] [stdout] --> src/state.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub moveFigureOx: i32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `move_figure_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveFigureOy` should have a snake case name [INFO] [stdout] --> src/state.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub moveFigureOy: i32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `move_figure_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `scaleOx` should have a snake case name [INFO] [stdout] --> src/state.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub scaleOx: i32, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `scaleOy` should have a snake case name [INFO] [stdout] --> src/state.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub scaleOy: i32, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveAxisOx` should have a snake case name [INFO] [stdout] --> src/state.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub moveAxisOx: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `move_axis_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveAxisOy` should have a snake case name [INFO] [stdout] --> src/state.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub moveAxisOy: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `move_axis_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateAxes` should have a snake case name [INFO] [stdout] --> src/state.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub rotateAxes: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `rotate_axes` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.06s [INFO] running `Command { std: "docker" "inspect" "2c3d22ce812a1a7476bc8ea965e040100d91ea317d4ba7c8b39a6736bba02ee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c3d22ce812a1a7476bc8ea965e040100d91ea317d4ba7c8b39a6736bba02ee0", kill_on_drop: false }` [INFO] [stdout] 2c3d22ce812a1a7476bc8ea965e040100d91ea317d4ba7c8b39a6736bba02ee0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d00c598af50842e6d24b4a34c4c38fccd0957af3da3918ef1acc02eec473be10 [INFO] running `Command { std: "docker" "start" "-a" "d00c598af50842e6d24b4a34c4c38fccd0957af3da3918ef1acc02eec473be10", kill_on_drop: false }` [INFO] [stderr] Compiling lab1 v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/point.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Point_f64` should have an upper camel case name [INFO] [stdout] --> src/point.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Point_f64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PointF64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/handle_draw.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/handle_draw.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Ref` [INFO] [stdout] --> src/handle_draw.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::cell::Ref; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_draw_color_alpha`, `print_text`, `draw_polygon`, and `fill_polygon` are never used [INFO] [stdout] --> src/canvas.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Canvas { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 7 | fn set_draw_color(&mut self, color: Color); [INFO] [stdout] 8 | fn set_draw_color_alpha(&mut self, color: Color, alpha: f64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn print_text(&mut self, p: &Point, text: &str); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | fn draw_line(&mut self, points: &[Point]); [INFO] [stdout] 13 | fn draw_polygon(&mut self, points: &[Point]); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | fn fill_polygon(&mut self, points: &[Point]); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `gray`, `white`, `red`, `green`, and `blue` are never used [INFO] [stdout] --> src/color.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn gray() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn white() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn red() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn green() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn blue() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `zoom` and `real_zoom` are never read [INFO] [stdout] --> src/figure.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Axis { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | zoom: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | real_zoom: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `zoom`, `draw`, `draw_strokes`, `draw_axis`, and `point_arrow` are never used [INFO] [stdout] --> src/figure.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Axis { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn zoom(&mut self, zoom: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn draw(&self, canvas: &mut CairoCanvas) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn draw_strokes(&self, canvas: &mut CairoCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn draw_axis(&self, canvas: &mut CairoCanvas, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn point_arrow(&self, pre_pt: Point_f64, pt: Point_f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/point.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn from(pt: Point_f64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_in_rectangle` is never used [INFO] [stdout] --> src/point.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn is_in_rectangle(lu: Point_f64, rd: Point_f64, point: Point_f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scaleOx` should have a snake case name [INFO] [stdout] --> src/figure.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn scaleOx(&mut self, scale: f64) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_ox` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scaleOy` should have a snake case name [INFO] [stdout] --> src/figure.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn scaleOy(&mut self, scale: f64) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `cntPoints` should have a snake case name [INFO] [stdout] --> src/state.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub cntPoints: i32, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cnt_points` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveFigureOx` should have a snake case name [INFO] [stdout] --> src/state.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub moveFigureOx: i32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `move_figure_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveFigureOy` should have a snake case name [INFO] [stdout] --> src/state.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub moveFigureOy: i32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `move_figure_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `scaleOx` should have a snake case name [INFO] [stdout] --> src/state.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub scaleOx: i32, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `scaleOy` should have a snake case name [INFO] [stdout] --> src/state.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub scaleOy: i32, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `scale_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveAxisOx` should have a snake case name [INFO] [stdout] --> src/state.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub moveAxisOx: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `move_axis_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveAxisOy` should have a snake case name [INFO] [stdout] --> src/state.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub moveAxisOy: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `move_axis_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateAxes` should have a snake case name [INFO] [stdout] --> src/state.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub rotateAxes: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `rotate_axes` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "d00c598af50842e6d24b4a34c4c38fccd0957af3da3918ef1acc02eec473be10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d00c598af50842e6d24b4a34c4c38fccd0957af3da3918ef1acc02eec473be10", kill_on_drop: false }` [INFO] [stdout] d00c598af50842e6d24b4a34c4c38fccd0957af3da3918ef1acc02eec473be10