chore: fix 30-40 warnings

This commit is contained in:
🪞👃🪞 2025-08-15 19:47:38 +03:00
parent 4604ad66a2
commit cac3fe044e
13 changed files with 36 additions and 44 deletions

View file

@ -7,8 +7,8 @@ impl Sampler {
let cells_y = 8u16;
let cell_width = 10u16;
let cell_height = 2u16;
let width = cells_x * cell_width;
let height = cells_y * cell_height;
//let width = cells_x * cell_width;
//let height = cells_y * cell_height;
let cols = Map::east(
cell_width,
move||0..cells_x,
@ -205,8 +205,8 @@ fn draw_viewer (sample: Option<&Arc<RwLock<Sample>>>) -> impl Content<TuiOut> +
Canvas::default()
.x_bounds([0.0, width as f64])
.y_bounds([0.0, height as f64])
.paint(|ctx| {
let text = "press record to begin sampling";
.paint(|_ctx| {
//let text = "press record to begin sampling";
//ctx.print(
//(width - text.len() as u16) as f64 / 2.0,
//height as f64 / 2.0,