[INFO] cloning repository https://github.com/shoebe/bresenham-curves-circles-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shoebe/bresenham-curves-circles-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoebe%2Fbresenham-curves-circles-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoebe%2Fbresenham-curves-circles-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2159960c64cb59e64c7ef40b36b88cfd762a57fc [INFO] linting shoebe/bresenham-curves-circles-rs against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoebe%2Fbresenham-curves-circles-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shoebe/bresenham-curves-circles-rs [INFO] finished tweaking git repo https://github.com/shoebe/bresenham-curves-circles-rs [INFO] tweaked toml for git repo https://github.com/shoebe/bresenham-curves-circles-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shoebe/bresenham-curves-circles-rs on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shoebe/bresenham-curves-circles-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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fallible_collections v0.4.9 [INFO] [stderr] Downloaded lodepng v3.10.1 [INFO] [stderr] Downloaded rgb v0.8.40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42707142ed1c817c64c5328f0fad5a3c1211b9773f31d50d8d75f86637c56126 [INFO] running `Command { std: "docker" "start" "-a" "42707142ed1c817c64c5328f0fad5a3c1211b9773f31d50d8d75f86637c56126", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42707142ed1c817c64c5328f0fad5a3c1211b9773f31d50d8d75f86637c56126", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42707142ed1c817c64c5328f0fad5a3c1211b9773f31d50d8d75f86637c56126", kill_on_drop: false }` [INFO] [stdout] 42707142ed1c817c64c5328f0fad5a3c1211b9773f31d50d8d75f86637c56126 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df12a2e4e2035112f636cf2cf74a20eb0a5378b98142307dc2451c905d7a3dcb [INFO] running `Command { std: "docker" "start" "-a" "df12a2e4e2035112f636cf2cf74a20eb0a5378b98142307dc2451c905d7a3dcb", kill_on_drop: false }` [INFO] [stderr] Checking bytemuck v1.16.1 [INFO] [stderr] Checking bresenham-curves-circles-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking rgb v0.8.40 [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/anti_aliased.rs:58:41 [INFO] [stdout] | [INFO] [stdout] 58 | set_pixel(x0, y0 + sy, (e2 + dy >> 16) as u8); [INFO] [stdout] | ^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(e2 + dy) >> 16` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] = note: `#[warn(clippy::precedence)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/anti_aliased.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | set_pixel(x2 + sx, y0, (dx - e2 >> 16) as u8); [INFO] [stdout] | ^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(dx - e2) >> 16` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/anti_aliased.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | mut x1: i32, [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/anti_aliased.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | mut y1: i32, [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/anti_aliased.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut dx: i32 = i32::abs(x1 - x0); [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/anti_aliased.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [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/anti_aliased.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut dy: i32 = i32::abs(y1 - y0); [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/anti_aliased.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [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/anti_aliased.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let mut ed: f32 = (if dx + dy == 0 as i32 { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `e2` is never read [INFO] [stdout] --> src/anti_aliased.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let mut e2: i32 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x2` is never read [INFO] [stdout] --> src/anti_aliased.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | let mut x2: i32 = 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 `y2` is never read [INFO] [stdout] --> src/anti_aliased.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | let mut y2: i32 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/anti_aliased.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | mut xm: i32, [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/anti_aliased.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | mut ym: i32, [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/anti_aliased.rs:167:22 [INFO] [stdout] | [INFO] [stdout] 167 | let mut i: i32 = 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 `x2` is never read [INFO] [stdout] --> src/anti_aliased.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 168 | let mut x2: i32 = 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 `e2` is never read [INFO] [stdout] --> src/anti_aliased.rs:169:23 [INFO] [stdout] | [INFO] [stdout] 169 | let mut e2: i32 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/anti_aliased.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | if !(2 as i32 as i64 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(2 as i32 as i64 * e2 > dy)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | let sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:35:51 [INFO] [stdout] | [INFO] [stdout] 35 | let sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | let sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | let sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | let mut e2: i64 = (if err == 0 as i32 as i64 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | 1 as i32 as f64 [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i64` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | 0xffff7f as i64 as f64 / f64::sqrt(err as f64) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `0xffff7f_i64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if 2 as i32 as i64 * e2 >= -dx { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i64` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | if e2 + dy < 0xff0000 as i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `0xff0000_i64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | if !(2 as i32 as i64 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i64` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | if dx - e2 < 0xff0000 as i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `0xff0000_i64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/anti_aliased.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if !(2 as i32 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(2 as i32 * e2 > dy)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | let mut sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:88:55 [INFO] [stdout] | [INFO] [stdout] 88 | let mut sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | let mut sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:90:55 [INFO] [stdout] | [INFO] [stdout] 90 | let mut sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:95:38 [INFO] [stdout] | [INFO] [stdout] 95 | let mut ed: f32 = (if dx + dy == 0 as i32 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | 1 as i32 as f64 [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | wd = (wd + 1 as i32 as f32) / 2 as i32 as f32; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | wd = (wd + 1 as i32 as f32) / 2 as i32 as f32; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | 0 as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `f32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:107:70 [INFO] [stdout] | [INFO] [stdout] 107 | (255.0 * (i32::abs(err - dx + dy) as f32 / ed - wd + 1 as f32)) as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `1_f32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if 2 as i32 * e2 >= -dx { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | 0 as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | if !(2 as i32 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | 0 as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/anti_aliased.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | if !(x < 0 as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `(x >= 0 as i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | let mut y: i32 = 0 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:170:24 [INFO] [stdout] | [INFO] [stdout] 170 | let mut err: i32 = 2 as i32 - 2 as i32 * r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:170:35 [INFO] [stdout] | [INFO] [stdout] 170 | let mut err: i32 = 2 as i32 - 2 as i32 * r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | r = 1 as i32 - err; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:173:34 [INFO] [stdout] | [INFO] [stdout] 173 | i = 255 * i32::abs(err - 2 as i32 * (x + y) - 2 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:173:55 [INFO] [stdout] | [INFO] [stdout] 173 | i = 255 * i32::abs(err - 2 as i32 * (x + y) - 2 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:180:22 [INFO] [stdout] | [INFO] [stdout] 180 | if err + y > 0 as i32 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | i = 255 as i32 * (err - 2 as i32 * x - 1 as i32) / r; [INFO] [stdout] | ^^^^^^^^^^ help: try: `255_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:181:37 [INFO] [stdout] | [INFO] [stdout] 181 | i = 255 as i32 * (err - 2 as i32 * x - 1 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:181:52 [INFO] [stdout] | [INFO] [stdout] 181 | i = 255 as i32 * (err - 2 as i32 * x - 1 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | if i < 256 as i32 { [INFO] [stdout] | ^^^^^^^^^^ help: try: `256_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:183:44 [INFO] [stdout] | [INFO] [stdout] 183 | set_pixel(xm - x, ym + y + 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:184:36 [INFO] [stdout] | [INFO] [stdout] 184 | set_pixel(xm - y - 1 as i32, ym - x, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:185:44 [INFO] [stdout] | [INFO] [stdout] 185 | set_pixel(xm + x, ym - y - 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:186:36 [INFO] [stdout] | [INFO] [stdout] 186 | set_pixel(xm + y + 1 as i32, ym + x, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | err += x * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:189:35 [INFO] [stdout] | [INFO] [stdout] 189 | err += x * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | if e2 + x2 <= 0 as i32 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | i = 255 as i32 * (2 as i32 * y + 3 as i32 - e2) / r; [INFO] [stdout] | ^^^^^^^^^^ help: try: `255_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | i = 255 as i32 * (2 as i32 * y + 3 as i32 - e2) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:192:46 [INFO] [stdout] | [INFO] [stdout] 192 | i = 255 as i32 * (2 as i32 * y + 3 as i32 - e2) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `3_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | if i < 256 as i32 { [INFO] [stdout] | ^^^^^^^^^^ help: try: `256_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:194:37 [INFO] [stdout] | [INFO] [stdout] 194 | set_pixel(xm - x2 - 1 as i32, ym + y, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:195:45 [INFO] [stdout] | [INFO] [stdout] 195 | set_pixel(xm - y, ym - x2 - 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | set_pixel(xm + x2 + 1 as i32, ym - y, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:197:45 [INFO] [stdout] | [INFO] [stdout] 197 | set_pixel(xm + y, ym + x2 + 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:200:24 [INFO] [stdout] | [INFO] [stdout] 200 | err += y * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:200:35 [INFO] [stdout] | [INFO] [stdout] 200 | err += y * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | if !(x < 0 as i32) { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking fallible_collections v0.4.9 [INFO] [stderr] Checking lodepng v3.10.1 [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/anti_aliased.rs:58:41 [INFO] [stdout] | [INFO] [stdout] 58 | set_pixel(x0, y0 + sy, (e2 + dy >> 16) as u8); [INFO] [stdout] | ^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(e2 + dy) >> 16` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] = note: `#[warn(clippy::precedence)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/anti_aliased.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | set_pixel(x2 + sx, y0, (dx - e2 >> 16) as u8); [INFO] [stdout] | ^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(dx - e2) >> 16` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/anti_aliased.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | mut x1: i32, [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/anti_aliased.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | mut y1: i32, [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/anti_aliased.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut dx: i32 = i32::abs(x1 - x0); [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/anti_aliased.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let mut sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [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/anti_aliased.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut dy: i32 = i32::abs(y1 - y0); [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/anti_aliased.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [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/anti_aliased.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let mut ed: f32 = (if dx + dy == 0 as i32 { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `e2` is never read [INFO] [stdout] --> src/anti_aliased.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let mut e2: i32 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x2` is never read [INFO] [stdout] --> src/anti_aliased.rs:93:23 [INFO] [stdout] | [INFO] [stdout] 93 | let mut x2: i32 = 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 `y2` is never read [INFO] [stdout] --> src/anti_aliased.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | let mut y2: i32 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/anti_aliased.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | mut xm: i32, [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/anti_aliased.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | mut ym: i32, [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/anti_aliased.rs:167:22 [INFO] [stdout] | [INFO] [stdout] 167 | let mut i: i32 = 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 `x2` is never read [INFO] [stdout] --> src/anti_aliased.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 168 | let mut x2: i32 = 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 `e2` is never read [INFO] [stdout] --> src/anti_aliased.rs:169:23 [INFO] [stdout] | [INFO] [stdout] 169 | let mut e2: i32 = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/anti_aliased.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | if !(2 as i32 as i64 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(2 as i32 as i64 * e2 > dy)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 35 | let sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:35:51 [INFO] [stdout] | [INFO] [stdout] 35 | let sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | let sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | let sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | let mut e2: i64 = (if err == 0 as i32 as i64 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | 1 as i32 as f64 [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i64` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | 0xffff7f as i64 as f64 / f64::sqrt(err as f64) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `0xffff7f_i64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if 2 as i32 as i64 * e2 >= -dx { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i64` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | if e2 + dy < 0xff0000 as i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `0xff0000_i64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | if !(2 as i32 as i64 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i64` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | if dx - e2 < 0xff0000 as i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `0xff0000_i64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/anti_aliased.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if !(2 as i32 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(2 as i32 * e2 > dy)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | let mut sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:88:55 [INFO] [stdout] | [INFO] [stdout] 88 | let mut sx: i32 = if x0 < x1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | let mut sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:90:55 [INFO] [stdout] | [INFO] [stdout] 90 | let mut sy: i32 = if y0 < y1 { 1 as i32 } else { -(1 as i32) }; [INFO] [stdout] | ^^^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:95:38 [INFO] [stdout] | [INFO] [stdout] 95 | let mut ed: f32 = (if dx + dy == 0 as i32 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | 1 as i32 as f64 [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | wd = (wd + 1 as i32 as f32) / 2 as i32 as f32; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | wd = (wd + 1 as i32 as f32) / 2 as i32 as f32; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | 0 as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `f32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:107:70 [INFO] [stdout] | [INFO] [stdout] 107 | (255.0 * (i32::abs(err - dx + dy) as f32 / ed - wd + 1 as f32)) as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `1_f32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if 2 as i32 * e2 >= -dx { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | 0 as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | if !(2 as i32 * e2 <= dy) { [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | 0 as i32, [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/anti_aliased.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | if !(x < 0 as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `(x >= 0 as i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | let mut y: i32 = 0 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:170:24 [INFO] [stdout] | [INFO] [stdout] 170 | let mut err: i32 = 2 as i32 - 2 as i32 * r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:170:35 [INFO] [stdout] | [INFO] [stdout] 170 | let mut err: i32 = 2 as i32 - 2 as i32 * r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | r = 1 as i32 - err; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:173:34 [INFO] [stdout] | [INFO] [stdout] 173 | i = 255 * i32::abs(err - 2 as i32 * (x + y) - 2 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:173:55 [INFO] [stdout] | [INFO] [stdout] 173 | i = 255 * i32::abs(err - 2 as i32 * (x + y) - 2 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:180:22 [INFO] [stdout] | [INFO] [stdout] 180 | if err + y > 0 as i32 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | i = 255 as i32 * (err - 2 as i32 * x - 1 as i32) / r; [INFO] [stdout] | ^^^^^^^^^^ help: try: `255_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:181:37 [INFO] [stdout] | [INFO] [stdout] 181 | i = 255 as i32 * (err - 2 as i32 * x - 1 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:181:52 [INFO] [stdout] | [INFO] [stdout] 181 | i = 255 as i32 * (err - 2 as i32 * x - 1 as i32) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | if i < 256 as i32 { [INFO] [stdout] | ^^^^^^^^^^ help: try: `256_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:183:44 [INFO] [stdout] | [INFO] [stdout] 183 | set_pixel(xm - x, ym + y + 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:184:36 [INFO] [stdout] | [INFO] [stdout] 184 | set_pixel(xm - y - 1 as i32, ym - x, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:185:44 [INFO] [stdout] | [INFO] [stdout] 185 | set_pixel(xm + x, ym - y - 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:186:36 [INFO] [stdout] | [INFO] [stdout] 186 | set_pixel(xm + y + 1 as i32, ym + x, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | err += x * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:189:35 [INFO] [stdout] | [INFO] [stdout] 189 | err += x * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | if e2 + x2 <= 0 as i32 { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | i = 255 as i32 * (2 as i32 * y + 3 as i32 - e2) / r; [INFO] [stdout] | ^^^^^^^^^^ help: try: `255_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | i = 255 as i32 * (2 as i32 * y + 3 as i32 - e2) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:192:46 [INFO] [stdout] | [INFO] [stdout] 192 | i = 255 as i32 * (2 as i32 * y + 3 as i32 - e2) / r; [INFO] [stdout] | ^^^^^^^^ help: try: `3_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | if i < 256 as i32 { [INFO] [stdout] | ^^^^^^^^^^ help: try: `256_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:194:37 [INFO] [stdout] | [INFO] [stdout] 194 | set_pixel(xm - x2 - 1 as i32, ym + y, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:195:45 [INFO] [stdout] | [INFO] [stdout] 195 | set_pixel(xm - y, ym - x2 - 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | set_pixel(xm + x2 + 1 as i32, ym - y, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:197:45 [INFO] [stdout] | [INFO] [stdout] 197 | set_pixel(xm + y, ym + x2 + 1 as i32, i as u8); [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:200:24 [INFO] [stdout] | [INFO] [stdout] 200 | err += y * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `2_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:200:35 [INFO] [stdout] | [INFO] [stdout] 200 | err += y * 2 as i32 + 1 as i32; [INFO] [stdout] | ^^^^^^^^ help: try: `1_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `i32` is unnecessary [INFO] [stdout] --> src/anti_aliased.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | if !(x < 0 as i32) { [INFO] [stdout] | ^^^^^^^^ help: try: `0_i32` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.83s [INFO] running `Command { std: "docker" "inspect" "df12a2e4e2035112f636cf2cf74a20eb0a5378b98142307dc2451c905d7a3dcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df12a2e4e2035112f636cf2cf74a20eb0a5378b98142307dc2451c905d7a3dcb", kill_on_drop: false }` [INFO] [stdout] df12a2e4e2035112f636cf2cf74a20eb0a5378b98142307dc2451c905d7a3dcb