[INFO] cloning repository https://github.com/svenslaggare/imageeditor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/svenslaggare/imageeditor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fimageeditor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fimageeditor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e477788f2eda4854f4130256c367e4e6183a9f1 [INFO] checking svenslaggare/imageeditor against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fimageeditor" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/svenslaggare/imageeditor on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/svenslaggare/imageeditor [INFO] finished tweaking git repo https://github.com/svenslaggare/imageeditor [INFO] tweaked toml for git repo https://github.com/svenslaggare/imageeditor written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/svenslaggare/imageeditor already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f2874bd9738628932e805fcd6d3b0739f9ba3500f507495712717875a7c7a54 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1f2874bd9738628932e805fcd6d3b0739f9ba3500f507495712717875a7c7a54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f2874bd9738628932e805fcd6d3b0739f9ba3500f507495712717875a7c7a54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f2874bd9738628932e805fcd6d3b0739f9ba3500f507495712717875a7c7a54", kill_on_drop: false }` [INFO] [stdout] 1f2874bd9738628932e805fcd6d3b0739f9ba3500f507495712717875a7c7a54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ffc7b0559e1a7d864af285c349ce7f99cfb33669d0f13d9ee49e12e57a33c40e [INFO] running `Command { std: "docker" "start" "-a" "ffc7b0559e1a7d864af285c349ce7f99cfb33669d0f13d9ee49e12e57a33c40e", kill_on_drop: false }` [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling cmake v0.1.42 [INFO] [stderr] Compiling freetype-sys v0.9.0 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling glfw-sys v3.3.2 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking freetype-rs v0.23.0 (https://github.com/PistonDevelopers/freetype-rs#9378ace6) [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking glfw v0.35.0 [INFO] [stderr] Checking jpeg-decoder v0.1.18 [INFO] [stderr] Checking image v0.22.4 [INFO] [stderr] Checking imageeditor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Action`, `Key`, `Modifiers` [INFO] [stdout] --> src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use glfw::{Context, Key, Action, Glfw, Window, WindowEvent, Modifiers}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glfw::WindowEvent::MouseButton` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use glfw::WindowEvent::MouseButton; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gl::types::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gl::types::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `RgbaImage` [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use image::{GenericImageView, DynamicImage, RgbaImage}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix3`, `Matrix4`, `Matrix`, `SquareMatrix`, `Transform` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix, Matrix4, Matrix3, Transform, SquareMatrix}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rendering::prelude::*` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::rendering::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rendering::texture::Texture` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::rendering::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CommandBuffer`, `Command` [INFO] [stdout] --> src/main.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::command_buffer::{CommandBuffer, Command}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperation` [INFO] [stdout] --> src/program.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::editor::image_operation::{ImageOperation, ImageSource}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CStr` [INFO] [stdout] --> src/rendering/texture_render.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::CStr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowEvent` [INFO] [stdout] --> src/ui/button.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use glfw::{WindowEvent, Action}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/editor/image_operation.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | let image_x = (*start_x + x as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/editor/image_operation.rs:86:39 [INFO] [stdout] | [INFO] [stdout] 86 | let image_y = (*start_y + y as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_transformed_mouse_position` [INFO] [stdout] --> src/editor/draw_tools/line.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::editor::draw_tools::{DrawTool, get_transformed_mouse_position}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationMarker` [INFO] [stdout] --> src/editor/draw_tools/line.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::editor::image_operation::{ImageOperation, ImageOperationMarker}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_transformed_mouse_position` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::editor::draw_tools::{DrawTool, get_transformed_mouse_position, get_valid_rectangle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationMarker` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::editor::image_operation::{ImageOperation, ImageOperationMarker}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_transformed_mouse_position` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::editor::draw_tools::{DrawTool, get_transformed_mouse_position, get_valid_rectangle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationMarker` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::editor::image_operation::{ImageOperation, ImageOperationMarker, ImageSource}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::image::ImageUpdateOperation` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::editor::image::ImageUpdateOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SquareMatrix` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cgmath::{Matrix3, SquareMatrix}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::image::ImageUpdateOperation` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::editor::image::ImageUpdateOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationSource` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::editor::image_operation::{ImageOperation, ImageOperationSource}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rendering::texture::Texture` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::rendering::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/editor/draw_tools/effect.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | (height as f32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `Key`, `Modifiers` [INFO] [stdout] --> src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use glfw::{Context, Key, Action, Glfw, Window, WindowEvent, Modifiers}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glfw::WindowEvent::MouseButton` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use glfw::WindowEvent::MouseButton; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gl::types::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gl::types::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `RgbaImage` [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use image::{GenericImageView, DynamicImage, RgbaImage}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix3`, `Matrix4`, `Matrix`, `SquareMatrix`, `Transform` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Matrix, Matrix4, Matrix3, Transform, SquareMatrix}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rendering::prelude::*` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::rendering::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rendering::texture::Texture` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::rendering::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CommandBuffer`, `Command` [INFO] [stdout] --> src/main.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::command_buffer::{CommandBuffer, Command}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperation` [INFO] [stdout] --> src/program.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::editor::image_operation::{ImageOperation, ImageSource}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CStr` [INFO] [stdout] --> src/rendering/texture_render.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::CStr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowEvent` [INFO] [stdout] --> src/ui/button.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use glfw::{WindowEvent, Action}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/editor/image_operation.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | let image_x = (*start_x + x as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/editor/image_operation.rs:86:39 [INFO] [stdout] | [INFO] [stdout] 86 | let image_y = (*start_y + y as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_transformed_mouse_position` [INFO] [stdout] --> src/editor/draw_tools/line.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::editor::draw_tools::{DrawTool, get_transformed_mouse_position}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationMarker` [INFO] [stdout] --> src/editor/draw_tools/line.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::editor::image_operation::{ImageOperation, ImageOperationMarker}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_transformed_mouse_position` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::editor::draw_tools::{DrawTool, get_transformed_mouse_position, get_valid_rectangle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationMarker` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::editor::image_operation::{ImageOperation, ImageOperationMarker}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_transformed_mouse_position` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::editor::draw_tools::{DrawTool, get_transformed_mouse_position, get_valid_rectangle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationMarker` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:8:54 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::editor::image_operation::{ImageOperation, ImageOperationMarker, ImageSource}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::image::ImageUpdateOperation` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::editor::image::ImageUpdateOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SquareMatrix` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use cgmath::{Matrix3, SquareMatrix}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::editor::image::ImageUpdateOperation` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::editor::image::ImageUpdateOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageOperationSource` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::editor::image_operation::{ImageOperation, ImageOperationSource}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rendering::texture::Texture` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::rendering::texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/editor/draw_tools/effect.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | (height as f32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use image::{GenericImageView, DynamicImage, RgbaImage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/editor/image.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, GenericImage, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImage` [INFO] [stdout] --> src/editor/image.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, GenericImage, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use image::{GenericImageView, DynamicImage, RgbaImage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/editor/image.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, GenericImage, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImage` [INFO] [stdout] --> src/editor/image.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{GenericImageView, GenericImage, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `undo_op` [INFO] [stdout] --> src/editor/editor.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let (op, undo_op) = &self.undo_stack[i]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_undo_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut x = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut y = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_x` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut end_x = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_y` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut end_y = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `marker` [INFO] [stdout] --> src/editor/image_operation.rs:224:36 [INFO] [stdout] | [INFO] [stdout] 224 | ImageOperation::Marker(marker) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/pencil.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | image: &editor::Image) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/pencil.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 88 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preview_image` [INFO] [stdout] --> src/editor/draw_tools/pencil.rs:88:50 [INFO] [stdout] | [INFO] [stdout] 88 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preview_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/line.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | window: &mut glfw::Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/line.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 56 | image: &editor::Image) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/line.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | window: &mut glfw::Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | image: &editor::Image) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | fn handle_command(&mut self, command: &Command) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | window: &mut Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:145:27 [INFO] [stdout] | [INFO] [stdout] 145 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:122:33 [INFO] [stdout] | [INFO] [stdout] 122 | fn process_event(&mut self, window: &mut Window, event: &WindowEvent, transform: &Matrix3, image: &Image) -> Option src/editor/draw_tools/effect.rs:122:75 [INFO] [stdout] | [INFO] [stdout] 122 | ...dow, event: &WindowEvent, transform: &Matrix3, image: &Image) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `undo_op` [INFO] [stdout] --> src/editor/editor.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let (op, undo_op) = &self.undo_stack[i]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_undo_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut x = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut y = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_x` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut end_x = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_y` is never read [INFO] [stdout] --> src/editor/image_operation_helpers.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut end_y = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `marker` [INFO] [stdout] --> src/editor/image_operation.rs:224:36 [INFO] [stdout] | [INFO] [stdout] 224 | ImageOperation::Marker(marker) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/pencil.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | image: &editor::Image) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/pencil.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 88 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `preview_image` [INFO] [stdout] --> src/editor/draw_tools/pencil.rs:88:50 [INFO] [stdout] | [INFO] [stdout] 88 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_preview_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/line.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | window: &mut glfw::Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/line.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 56 | image: &editor::Image) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/line.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | window: &mut glfw::Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | image: &editor::Image) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/rectangle.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | fn handle_command(&mut self, command: &Command) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | window: &mut Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/editor/draw_tools/selection.rs:145:27 [INFO] [stdout] | [INFO] [stdout] 145 | fn preview(&mut self, image: &editor::Image, preview_image: &mut editor::Image) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/editor/draw_tools/effect.rs:122:33 [INFO] [stdout] | [INFO] [stdout] 122 | fn process_event(&mut self, window: &mut Window, event: &WindowEvent, transform: &Matrix3, image: &Image) -> Option src/editor/draw_tools/effect.rs:122:75 [INFO] [stdout] | [INFO] [stdout] 122 | ...dow, event: &WindowEvent, transform: &Matrix3, image: &Image) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rendering/texture.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut texture = Texture::new(image.width(), image.height(), 4); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rendering/texture.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut texture = Texture::new(image.width(), image.height(), 4); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor/image.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut texture = Texture::new(image.width(), image.height(), 4); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/editor/image.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut texture = Texture::new(image.width(), image.height(), 4); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Color` [INFO] [stdout] --> src/rendering/prelude.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub type Color = cgmath::Point3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `texture_width` [INFO] [stdout] --> src/rendering/font.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | texture_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `texture_height` [INFO] [stdout] --> src/rendering/font.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | texture_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `characters` [INFO] [stdout] --> src/rendering/font.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | characters: HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rendering/font.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(filename: &str, size: u32, characters: &Vec) -> FontMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Font` [INFO] [stdout] --> src/rendering/font.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Font { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rendering/font.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn new(filename: &str, size: u32) -> Font { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_id` [INFO] [stdout] --> src/rendering/font.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn texture_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_only` [INFO] [stdout] --> src/rendering/font.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn get_only(&self, character: char) -> Option<&FontCharacter> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/rendering/font.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn get(&mut self, character: char) -> Option<&FontCharacter> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `line_height` [INFO] [stdout] --> src/rendering/font.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn line_height(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bool` [INFO] [stdout] --> src/rendering/shader.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 133 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_int32` [INFO] [stdout] --> src/rendering/shader.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub unsafe fn set_int32(&self, name: &CStr, value: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_float32` [INFO] [stdout] --> src/rendering/shader.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | pub unsafe fn set_float32(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_vector2` [INFO] [stdout] --> src/rendering/shader.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | pub unsafe fn set_vector2(&self, name: &CStr, x: f32, y: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_vector3` [INFO] [stdout] --> src/rendering/shader.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | pub unsafe fn set_vector3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base_index` [INFO] [stdout] --> src/rendering/texture.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn base_index(&self, x: u32, y: u32) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `color_buffer_id` [INFO] [stdout] --> src/rendering/framebuffer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn color_buffer_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adaptive_cols` [INFO] [stdout] --> src/ui/layout.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn adaptive_cols(origin: Position, cell_size: (f32, f32), row_height: f32, num_elements: usize) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `raw_pixels` [INFO] [stdout] --> src/editor/image.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn raw_pixels(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_image` [INFO] [stdout] --> src/editor/image.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn get_image(&self) -> &Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SetPixel` [INFO] [stdout] --> src/editor/image_operation.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | SetPixel { x: i32, y: i32, color: Color }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Color` [INFO] [stdout] --> src/rendering/prelude.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub type Color = cgmath::Point3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `texture_width` [INFO] [stdout] --> src/rendering/font.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | texture_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `texture_height` [INFO] [stdout] --> src/rendering/font.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | texture_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `characters` [INFO] [stdout] --> src/rendering/font.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | characters: HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rendering/font.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(filename: &str, size: u32, characters: &Vec) -> FontMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Font` [INFO] [stdout] --> src/rendering/font.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Font { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rendering/font.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn new(filename: &str, size: u32) -> Font { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_id` [INFO] [stdout] --> src/rendering/font.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn texture_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_only` [INFO] [stdout] --> src/rendering/font.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn get_only(&self, character: char) -> Option<&FontCharacter> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/rendering/font.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn get(&mut self, character: char) -> Option<&FontCharacter> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `line_height` [INFO] [stdout] --> src/rendering/font.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn line_height(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bool` [INFO] [stdout] --> src/rendering/shader.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 133 | pub unsafe fn set_bool(&self, name: &CStr, value: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_int32` [INFO] [stdout] --> src/rendering/shader.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub unsafe fn set_int32(&self, name: &CStr, value: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_float32` [INFO] [stdout] --> src/rendering/shader.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | pub unsafe fn set_float32(&self, name: &CStr, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_vector2` [INFO] [stdout] --> src/rendering/shader.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | pub unsafe fn set_vector2(&self, name: &CStr, x: f32, y: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_vector3` [INFO] [stdout] --> src/rendering/shader.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | pub unsafe fn set_vector3(&self, name: &CStr, x: f32, y: f32, z: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `base_index` [INFO] [stdout] --> src/rendering/texture.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn base_index(&self, x: u32, y: u32) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `color_buffer_id` [INFO] [stdout] --> src/rendering/framebuffer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn color_buffer_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adaptive_cols` [INFO] [stdout] --> src/ui/layout.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn adaptive_cols(origin: Position, cell_size: (f32, f32), row_height: f32, num_elements: usize) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `raw_pixels` [INFO] [stdout] --> src/editor/image.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn raw_pixels(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_image` [INFO] [stdout] --> src/editor/image.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn get_image(&self) -> &Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SetPixel` [INFO] [stdout] --> src/editor/image_operation.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | SetPixel { x: i32, y: i32, color: Color }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 38.92s [INFO] running `Command { std: "docker" "inspect" "ffc7b0559e1a7d864af285c349ce7f99cfb33669d0f13d9ee49e12e57a33c40e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffc7b0559e1a7d864af285c349ce7f99cfb33669d0f13d9ee49e12e57a33c40e", kill_on_drop: false }` [INFO] [stdout] ffc7b0559e1a7d864af285c349ce7f99cfb33669d0f13d9ee49e12e57a33c40e