warning: unused imports: `FRAC_PI_2`, `FRAC_PI_4`, and `PI`
--> src/shapes/rectangle.rs:1:24
|
1 | use std::f32::consts::{FRAC_PI_2, FRAC_PI_4, PI};
| ^^^^^^^^^ ^^^^^^^^^ ^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `line::Line`
--> src/shapes/rectangle.rs:5:35
|
5 | use crate::{shapes::{Orientation, line::Line, triangle::Triangle}, types::vec2::Vec2};
| ^^^^^^^^^^
warning: unused imports: `FRAC_PI_4`, `fmt::format`, and `io::stdout`
--> src/shapes/triangle.rs:1:36
|
1 | use std::{f32::consts::{FRAC_PI_2, FRAC_PI_4, PI}, fmt::format, io::stdout};
| ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^
warning: unused imports: `Print` and `queue`
--> src/shapes/triangle.rs:3:17
|
3 | use crossterm::{queue, style::{Color, Print}};
| ^^^^^ ^^^^^
warning: `glyph` (lib) generated 4 warnings (run `cargo fix --lib -p glyph` to apply 4 suggestions)
warning: unused imports: `Error`, `FRAC_PI_4`, `FRAC_PI_8`, `thread::sleep`, and `time::Duration`
--> examples/growing_rect.rs:1:25
|
1 | use std::{f32::consts::{FRAC_PI_4, FRAC_PI_8, PI}, io::{Error, stdout}, thread::sleep, time::Duration};
| ^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `Event` and `self`
--> examples/growing_rect.rs:3:41
|
3 | use crossterm::{cursor::MoveTo, event::{self, Event, KeyCode}, execute, style::Color, terminal::{Clear, ClearType, disable_raw_mode, enab...
| ^^^^ ^^^^^
warning: unused imports: `Orientation`, `line::Line`, and `triangle::Triangle`
--> examples/growing_rect.rs:4:39
|
4 | use glyph::{key::handle_key, shapes::{Orientation, line::Line, rectangle::Rectangle, triangle::Triangle}, types::vec2::Vec2, utils::get_t...
| ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
warning: variable does not need to be mutable
--> examples/growing_rect.rs:16:9
|
16 | let mut rad = PI / 16.0;
| ----^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `rad`
--> examples/growing_rect.rs:16:9
|
16 | let mut rad = PI / 16.0;
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rad`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: `glyph` (example "growing_rect") generated 5 warnings (run `cargo fix --example "growing_rect" -p glyph` to apply 5 suggestions)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/examples/growing_rect`
rp Vec2 { x: -0.0, y: 0.0 } Vec2 { x: 0.0, y: -0.0 } Vec2 { x: 0.0, y: 0.0 }
sp Vec2 { x: 85.0, y: 20.0 } Vec2 { x: 85.0, y: 20.0 } Vec2 { x: 85.0, y: 20.0 }
rp Vec2 { x: 0.0, y: 0.0 } Vec2 { x: 0.0, y: 0.0 } Vec2 { x: -0.0, y: 0.0 }
sp Vec2 { x: 85.0, y: 20.0 } Vec2 { x: 85.0, y: 20.0 } Vec2 { x: 85.0, y: 20.0 }
rp Vec2 { x: -1.0, y: -0.5 } Vec2 { x: 1.0, y: -0.5 } Vec2 { x: 1.0, y: 0.5 }
sp Vec2 { x: 84.0, y: 20.5 } Vec2 { x: 86.0, y: 20.5 } Vec2 { x: 86.0, y: 19.5 }
rp Vec2 { x: 1.0, y: 0.49999997 } Vec2 { x: -0.99999994, y: 0.5 } Vec2 { x: -1.0, y: -0.49999997 }
sp Vec2 { x: 86.0, y: 19.5 } Vec2 { x: 84.0, y: 19.5 } Vec2 { x: 84.0, y: 20.5 }
rp Vec2 { x: -2.0, y: -1.0 } Vec2 { x: 2.0, y: -1.0 } Vec2 { x: 2.0, y: 1.0 }
sp Vec2 { x: 83.0, y: 21.0 } Vec2 { x: 87.0, y: 21.0 } Vec2 { x: 87.0, y: 19.0 }
rp Vec2 { x: 2.0, y: 0.99999994 } Vec2 { x: -1.9999999, y: 1.0 } Vec2 { x: -2.0, y: -0.99999994 }
sp Vec2 { x: 87.0, y: 19.0 } Vec2 { x: 83.0, y: 19.0 } Vec2 { x: 83.0, y: 21.0 }
rp Vec2 { x: -3.0, y: -1.5 } Vec2 { x: 3.0, y: -1.5 } Vec2 { x: 3.0, y: 1.5 }
sp Vec2 { x: 82.0, y: 21.5 } Vec2 { x: 88.0, y: 21.5 } Vec2 { x: 88.0, y: 18.5 }
rp Vec2 { x: 3.0000002, y: 1.4999999 } Vec2 { x: -2.9999998, y: 1.5000001 } Vec2 { x: -3.0000002, y: -1.4999999 }
sp Vec2 { x: 88.0, y: 18.5 } Vec2 { x: 82.0, y: 18.5 } Vec2 { x: 82.0, y: 21.5 }
rp Vec2 { x: -4.0, y: -2.0 } Vec2 { x: 4.0, y: -2.0 } Vec2 { x: 4.0, y: 2.0 }
sp Vec2 { x: 81.0, y: 22.0 } Vec2 { x: 89.0, y: 22.0 } Vec2 { x: 89.0, y: 18.0 }
rp Vec2 { x: 4.0, y: 1.9999999 } Vec2 { x: -3.9999998, y: 2.0 } Vec2 { x: -4.0, y: -1.9999999 }
sp Vec2 { x: 89.0, y: 18.0 } Vec2 { x: 81.0, y: 18.0 } Vec2 { x: 81.0, y: 22.0 }
rp Vec2 { x: -5.0, y: -2.5 } Vec2 { x: 5.0, y: -2.5 } Vec2 { x: 5.0, y: 2.5 }
sp Vec2 { x: 80.0, y: 22.5 } Vec2 { x: 90.0, y: 22.5 } Vec2 { x: 90.0, y: 17.5 }
rp Vec2 { x: 5.0, y: 2.5 } Vec2 { x: -5.0, y: 2.5 } Vec2 { x: -5.0, y: -2.5 }
sp Vec2 { x: 90.0, y: 17.5 } Vec2 { x: 80.0, y: 17.5 } Vec2 { x: 80.0, y: 22.5 }
rp Vec2 { x: -6.0, y: -3.0 } Vec2 { x: 6.0, y: -3.0 } Vec2 { x: 6.0, y: 3.0 }
sp Vec2 { x: 79.0, y: 23.0 } Vec2 { x: 91.0, y: 23.0 } Vec2 { x: 91.0, y: 17.0 }
rp Vec2 { x: 6.0000005, y: 2.9999998 } Vec2 { x: -5.9999995, y: 3.0000002 } Vec2 { x: -6.0000005, y: -2.9999998 }
sp Vec2 { x: 91.0, y: 17.0 } Vec2 { x: 79.0, y: 17.0 } Vec2 { x: 79.0, y: 23.0 }
rp Vec2 { x: -7.0, y: -3.5 } Vec2 { x: 7.0, y: -3.5 } Vec2 { x: 7.0, y: 3.5 }
sp Vec2 { x: 78.0, y: 23.5 } Vec2 { x: 92.0, y: 23.5 } Vec2 { x: 92.0, y: 16.5 }
rp Vec2 { x: 7.0000005, y: 3.4999998 } Vec2 { x: -6.9999995, y: 3.5000002 } Vec2 { x: -7.0000005, y: -3.4999998 }
sp Vec2 { x: 92.0, y: 16.5 } Vec2 { x: 78.0, y: 16.5 } Vec2 { x: 78.0, y: 23.5 }
rp Vec2 { x: -8.0, y: -4.0 } Vec2 { x: 8.0, y: -4.0 } Vec2 { x: 8.0, y: 4.0 }
sp Vec2 { x: 77.0, y: 24.0 } Vec2 { x: 93.0, y: 24.0 } Vec2 { x: 93.0, y: 16.0 }
rp Vec2 { x: 8.0, y: 3.9999998 } Vec2 { x: -7.9999995, y: 4.0 } Vec2 { x: -8.0, y: -3.9999998 }
sp Vec2 { x: 93.0, y: 16.0 } Vec2 { x: 77.0, y: 16.0 } Vec2 { x: 77.0, y: 24.0 }
rp Vec2 { x: -9.0, y: -4.5 } Vec2 { x: 9.0, y: -4.5 } Vec2 { x: 9.0, y: 4.5 }
sp Vec2 { x: 76.0, y: 24.5 } Vec2 { x: 94.0, y: 24.5 } Vec2 { x: 94.0, y: 15.5 }
rp Vec2 { x: 9.0, y: 4.5 } Vec2 { x: -9.0, y: 4.5 } Vec2 { x: -9.0, y: -4.5 }
sp Vec2 { x: 94.0, y: 15.5 } Vec2 { x: 76.0, y: 15.5 } Vec2 { x: 76.0, y: 24.5 }