mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
chore: fix 30-40 warnings
This commit is contained in:
parent
4604ad66a2
commit
cac3fe044e
13 changed files with 36 additions and 44 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue