[INFO] cloning repository https://github.com/JJackYT/FluidSim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JJackYT/FluidSim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJJackYT%2FFluidSim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJJackYT%2FFluidSim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce9fc2b65924ab3c7bc8b342dbd3f5baaa1627d2 [INFO] checking JJackYT/FluidSim against try#b10dae361a61486cfbdcd3aae3877ee17e00d192 for pr-153912 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJJackYT%2FFluidSim" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JJackYT/FluidSim [INFO] finished tweaking git repo https://github.com/JJackYT/FluidSim [INFO] tweaked toml for git repo https://github.com/JJackYT/FluidSim written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JJackYT/FluidSim on toolchain b10dae361a61486cfbdcd3aae3877ee17e00d192 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JJackYT/FluidSim 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" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking JJackYT/FluidSim against try#b10dae361a61486cfbdcd3aae3877ee17e00d192 for pr-153912 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJJackYT%2FFluidSim" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JJackYT/FluidSim [INFO] finished tweaking git repo https://github.com/JJackYT/FluidSim [INFO] tweaked toml for git repo https://github.com/JJackYT/FluidSim written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JJackYT/FluidSim on toolchain b10dae361a61486cfbdcd3aae3877ee17e00d192 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JJackYT/FluidSim 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" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.108 [INFO] [stderr] Downloaded sdl2 v0.38.0 [INFO] [stderr] Downloaded sdl2-sys v0.38.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 767db35e18b72540c9aaf383f77355aa18fae31e0cb15b2a8e174e46ce755912 [INFO] running `Command { std: "docker" "start" "-a" "767db35e18b72540c9aaf383f77355aa18fae31e0cb15b2a8e174e46ce755912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "767db35e18b72540c9aaf383f77355aa18fae31e0cb15b2a8e174e46ce755912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "767db35e18b72540c9aaf383f77355aa18fae31e0cb15b2a8e174e46ce755912", kill_on_drop: false }` [INFO] [stdout] 767db35e18b72540c9aaf383f77355aa18fae31e0cb15b2a8e174e46ce755912 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6496ffd61fa4438d97a6b45e16cb3e2291247dfa50997b64ace9a19a71a8d08 [INFO] running `Command { std: "docker" "start" "-a" "c6496ffd61fa4438d97a6b45e16cb3e2291247dfa50997b64ace9a19a71a8d08", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling sdl2 v0.38.0 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling sdl2-sys v0.38.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking FluidSim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/main.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::render::Canvas` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::render::Canvas; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/model/dynamicfluid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/model/dynamicfluid.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::rect::{Point, Rect}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Mul`, and `Sub` [INFO] [stdout] --> src/model/dynamicfluid.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Add,Sub,Mul}; [INFO] [stdout] | ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::keyboard::Scancode::C` [INFO] [stdout] --> src/model/dynamicfluid.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::keyboard::Scancode::C; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Complex` [INFO] [stdout] --> src/model/dynamicfluid.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::mathlib::math::{Vector2, Complex, abs, PI}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/dynamicfluid.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] 81 + let past_point = &point + &(&point_velocity * -dt) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/dynamicfluid.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] 96 + let past_point = &point + &(&point_velocity * -dt) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/dynamicfluid.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] 104 + let past_point = &point + &(&point_velocity * -dt) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/model/fluidfunctions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FPoint` [INFO] [stdout] --> src/model/fluidfunctions.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::rect::{FPoint, Point}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/fluidfunctions.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | let w: f64 = (velocity.mag() / 5.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - let w: f64 = (velocity.mag() / 5.0); [INFO] [stdout] 87 + let w: f64 = velocity.mag() / 5.0 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/main.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::render::Canvas` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::render::Canvas; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/model/dynamicfluid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rect` [INFO] [stdout] --> src/model/dynamicfluid.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::rect::{Point, Rect}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Mul`, and `Sub` [INFO] [stdout] --> src/model/dynamicfluid.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Add,Sub,Mul}; [INFO] [stdout] | ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::keyboard::Scancode::C` [INFO] [stdout] --> src/model/dynamicfluid.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::keyboard::Scancode::C; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Complex` [INFO] [stdout] --> src/model/dynamicfluid.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::mathlib::math::{Vector2, Complex, abs, PI}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/dynamicfluid.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] 81 + let past_point = &point + &(&point_velocity * -dt) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/dynamicfluid.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] 96 + let past_point = &point + &(&point_velocity * -dt) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/dynamicfluid.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 - let past_point = (&point + &(&point_velocity * -dt)); [INFO] [stdout] 104 + let past_point = &point + &(&point_velocity * -dt) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/model/fluidfunctions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FPoint` [INFO] [stdout] --> src/model/fluidfunctions.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::rect::{FPoint, Point}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/model/fluidfunctions.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | let w: f64 = (velocity.mag() / 5.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - let w: f64 = (velocity.mag() / 5.0); [INFO] [stdout] 87 + let w: f64 = velocity.mag() / 5.0 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:332:13 [INFO] [stdout] | [INFO] [stdout] 331 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 332 | return self.get_smoke_cell(&(position + &Vector2{x:1.0,y:0.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 335 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 336 | [INFO] [stdout] 337 | return self.get_smoke_cell(&(position + &Vector2{x:-1.0,y:0.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 340 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 341 | [INFO] [stdout] 342 | return self.get_smoke_cell(&(position + &Vector2{x:0.0,y:1.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 345 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 346 | [INFO] [stdout] 347 | return self.get_smoke_cell(&(position + &Vector2{x:0.0,y:-1.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dx` [INFO] [stdout] --> src/model/dynamicfluid.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn advect_velocity(&mut self,dt: f64 , dx: f64,density: f64,xflow: f64,yflow: f64) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `density` [INFO] [stdout] --> src/model/dynamicfluid.rs:87:56 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn advect_velocity(&mut self,dt: f64 , dx: f64,density: f64,xflow: f64,yflow: f64) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_density` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/model/dynamicfluid.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | for i in 0.. 10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/dynamicfluid.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut new_speed: Vector2 = &vector - &self.mouse_position; [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: unused variable: `xval` [INFO] [stdout] --> src/model/dynamicfluid.rs:239:22 [INFO] [stdout] | [INFO] [stdout] 239 | let (xval,yval) = ((position.x - fracpos.x) as usize, (position.y - fracpos.y) as usize); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_xval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yval` [INFO] [stdout] --> src/model/dynamicfluid.rs:239:27 [INFO] [stdout] | [INFO] [stdout] 239 | let (xval,yval) = ((position.x - fracpos.x) as usize, (position.y - fracpos.y) as usize); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_yval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `u_vel` is never read [INFO] [stdout] --> src/model/dynamicfluid.rs:284:29 [INFO] [stdout] | [INFO] [stdout] 284 | let mut u_vel:f64 = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v_vel` is never read [INFO] [stdout] --> src/model/dynamicfluid.rs:285:29 [INFO] [stdout] | [INFO] [stdout] 285 | let mut v_vel:f64 = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/model/fluidfunctions.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn uniform_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color` is never read [INFO] [stdout] --> src/model/fluidfunctions.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | let mut color: Color = Color::RGBA(0,0,0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:332:13 [INFO] [stdout] | [INFO] [stdout] 331 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 332 | return self.get_smoke_cell(&(position + &Vector2{x:1.0,y:0.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen_area` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let screen_area:Rect = Rect::new(0,0,screen_width,screen_height); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 335 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 336 | [INFO] [stdout] 337 | return self.get_smoke_cell(&(position + &Vector2{x:-1.0,y:0.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/main.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let time = (Time.duration_since(UNIX_EPOCH).expect("Time went backwards") - lastframe).as_secs_f64() as f32; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 340 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 341 | [INFO] [stdout] 342 | return self.get_smoke_cell(&(position + &Vector2{x:0.0,y:1.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let v = dynamicsim.get_point_velocity(&mathlib::math::Vector2{x:4.0,y:4.0}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/model/dynamicfluid.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 345 | return [0,0,0]; [INFO] [stdout] | -------------- any code following this expression is unreachable [INFO] [stdout] 346 | [INFO] [stdout] 347 | return self.get_smoke_cell(&(position + &Vector2{x:0.0,y:-1.0})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mathtest` is never used [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn mathtest(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `e` is never used [INFO] [stdout] --> src/mathlib/math.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const e: f64 = std::f64::consts::E; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clog` is never used [INFO] [stdout] --> src/mathlib/math.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn clog(z: Complex) -> Complex { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> src/mathlib/math.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn abs(x: f64) -> f64{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calc_divergence` and `calc_divergence_total` are never used [INFO] [stdout] --> src/model/dynamicfluid.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl FluidSim { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn calc_divergence(&self,cell: Vector2) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn calc_divergence_total(&self) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_direction` is never read [INFO] [stdout] --> src/model/fluidfunctions.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct UniformFlow { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | field_direction: [f64;2], [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uniform_field` is never used [INFO] [stdout] --> src/model/fluidfunctions.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UniformFlow { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 13 | pub fn uniform_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `field_strength` are never read [INFO] [stdout] --> src/model/fluidfunctions.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SourceFlow { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | position: Vector2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | field_strength: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `source_field` is never used [INFO] [stdout] --> src/model/fluidfunctions.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl SourceFlow { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 23 | pub fn source_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `field_strength` are never read [INFO] [stdout] --> src/model/fluidfunctions.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct VortexFlow{ [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 33 | position: Vector2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | field_strength: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vortex_field` is never used [INFO] [stdout] --> src/model/fluidfunctions.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl VortexFlow { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 38 | pub fn vortex_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `screen_size` is never read [INFO] [stdout] --> src/model/fluidfunctions.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct FlowField{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 48 | pub screen_size: [u32;2], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `render` and `pixel_to_point` are never used [INFO] [stdout] --> src/model/fluidfunctions.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl FlowField { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn render(&self,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn pixel_to_point(&self,point: &[u32;2]) -> Vector2{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Time` should have a snake case name [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let Time = SystemTime::now(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `e` should have an upper case name [INFO] [stdout] --> src/mathlib/math.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const e: f64 = std::f64::consts::E; [INFO] [stdout] | ^ help: convert the identifier to upper case: `E` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/model/dynamicfluid.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | if u_val < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/model/dynamicfluid.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | if v_val < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dx` [INFO] [stdout] --> src/model/dynamicfluid.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn advect_velocity(&mut self,dt: f64 , dx: f64,density: f64,xflow: f64,yflow: f64) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `density` [INFO] [stdout] --> src/model/dynamicfluid.rs:87:56 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn advect_velocity(&mut self,dt: f64 , dx: f64,density: f64,xflow: f64,yflow: f64) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_density` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/model/dynamicfluid.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | for i in 0.. 10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/dynamicfluid.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut new_speed: Vector2 = &vector - &self.mouse_position; [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.77s [INFO] [stdout] warning: unused variable: `xval` [INFO] [stdout] --> src/model/dynamicfluid.rs:239:22 [INFO] [stdout] | [INFO] [stdout] 239 | let (xval,yval) = ((position.x - fracpos.x) as usize, (position.y - fracpos.y) as usize); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_xval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yval` [INFO] [stdout] --> src/model/dynamicfluid.rs:239:27 [INFO] [stdout] | [INFO] [stdout] 239 | let (xval,yval) = ((position.x - fracpos.x) as usize, (position.y - fracpos.y) as usize); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_yval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `u_vel` is never read [INFO] [stdout] --> src/model/dynamicfluid.rs:284:29 [INFO] [stdout] | [INFO] [stdout] 284 | let mut u_vel:f64 = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v_vel` is never read [INFO] [stdout] --> src/model/dynamicfluid.rs:285:29 [INFO] [stdout] | [INFO] [stdout] 285 | let mut v_vel:f64 = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/model/fluidfunctions.rs:13:32 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn uniform_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color` is never read [INFO] [stdout] --> src/model/fluidfunctions.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | let mut color: Color = Color::RGBA(0,0,0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen_area` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let screen_area:Rect = Rect::new(0,0,screen_width,screen_height); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/main.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let time = (Time.duration_since(UNIX_EPOCH).expect("Time went backwards") - lastframe).as_secs_f64() as f32; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let v = dynamicsim.get_point_velocity(&mathlib::math::Vector2{x:4.0,y:4.0}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mathtest` is never used [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn mathtest(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `e` is never used [INFO] [stdout] --> src/mathlib/math.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const e: f64 = std::f64::consts::E; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clog` is never used [INFO] [stdout] --> src/mathlib/math.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn clog(z: Complex) -> Complex { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> src/mathlib/math.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn abs(x: f64) -> f64{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calc_divergence` and `calc_divergence_total` are never used [INFO] [stdout] --> src/model/dynamicfluid.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl FluidSim { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn calc_divergence(&self,cell: Vector2) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn calc_divergence_total(&self) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_direction` is never read [INFO] [stdout] --> src/model/fluidfunctions.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct UniformFlow { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | field_direction: [f64;2], [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uniform_field` is never used [INFO] [stdout] --> src/model/fluidfunctions.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UniformFlow { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 13 | pub fn uniform_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `field_strength` are never read [INFO] [stdout] --> src/model/fluidfunctions.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SourceFlow { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | position: Vector2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | field_strength: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `source_field` is never used [INFO] [stdout] --> src/model/fluidfunctions.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl SourceFlow { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 23 | pub fn source_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `field_strength` are never read [INFO] [stdout] --> src/model/fluidfunctions.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct VortexFlow{ [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 33 | position: Vector2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | field_strength: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vortex_field` is never used [INFO] [stdout] --> src/model/fluidfunctions.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl VortexFlow { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 38 | pub fn vortex_field(&self,z:&Complex) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `screen_size` is never read [INFO] [stdout] --> src/model/fluidfunctions.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct FlowField{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 48 | pub screen_size: [u32;2], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `render` and `pixel_to_point` are never used [INFO] [stdout] --> src/model/fluidfunctions.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl FlowField { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn render(&self,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn pixel_to_point(&self,point: &[u32;2]) -> Vector2{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Time` should have a snake case name [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let Time = SystemTime::now(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `e` should have an upper case name [INFO] [stdout] --> src/mathlib/math.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const e: f64 = std::f64::consts::E; [INFO] [stdout] | ^ help: convert the identifier to upper case: `E` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/model/dynamicfluid.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | if u_val < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/model/dynamicfluid.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | if v_val < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c6496ffd61fa4438d97a6b45e16cb3e2291247dfa50997b64ace9a19a71a8d08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6496ffd61fa4438d97a6b45e16cb3e2291247dfa50997b64ace9a19a71a8d08", kill_on_drop: false }` [INFO] [stdout] c6496ffd61fa4438d97a6b45e16cb3e2291247dfa50997b64ace9a19a71a8d08