fix warns

This commit is contained in:
facile pop culture reference 2026-07-30 16:38:32 +03:00
parent 81bc0c67a3
commit 5ca329292f
11 changed files with 16 additions and 21 deletions

View file

@ -1,5 +1,5 @@
use crate::*;
use ratatui::{prelude::{Style, Position, Backend, Color}};
use ratatui::{prelude::{Position}};
pub const ICON_DEC_V: &[char] = &['▲'];
pub const ICON_INC_V: &[char] = &['▼'];
@ -7,7 +7,7 @@ pub const ICON_DEC_H: &[char] = &[' ', '🞀', ' '];
pub const ICON_INC_H: &[char] = &[' ', '🞂', ' '];
pub fn x_scroll () -> impl Draw<Tui> {
thunk(|Tui(buf, XYWH(x1, y1, w, h)): &mut Tui|{
thunk(|Tui(buf, XYWH(x1, y1, w, _h)): &mut Tui|{
let x2 = *x1 + *w;
for (i, x) in (*x1..=x2).enumerate() {
if let Some(cell) = buf.cell_mut(Position::from((x, *y1))) {
@ -35,7 +35,7 @@ pub fn x_scroll () -> impl Draw<Tui> {
}
pub fn y_scroll () -> impl Draw<Tui> {
thunk(|Tui(buf, XYWH(x1, y1, w, h)): &mut Tui|{
thunk(|Tui(buf, XYWH(x1, y1, _w, h)): &mut Tui|{
let y2 = *y1 + *h;
for (i, y) in (*y1..=y2).enumerate() {
if let Some(cell) = buf.cell_mut(Position::from((*x1, y))) {