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

@ -18,7 +18,7 @@ pub struct Pool {
//.flatten()));
impl Default for Pool {
fn default () -> Self {
use PoolMode::*;
//use PoolMode::*;
Self {
visible: true,
clips: Arc::from(RwLock::from(vec![])),

View file

@ -7,7 +7,7 @@ content!(TuiOut: |self: PoolView<'a>| {
//let color = self.1.clip().map(|c|c.read().unwrap().color).unwrap_or_else(||Tui::g(32).into());
//let on_bg = |x|x;//Bsp::b(Repeat(" "), Tui::bg(color.darkest.rgb, x));
//let border = |x|x;//Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb)).enclose(x);
let height = pool.clips.read().unwrap().len() as u16;
//let height = pool.clips.read().unwrap().len() as u16;
Fixed::x(20, Fill::y(Align::n(Map::new(
||pool.clips().clone().into_iter(),
move|clip: Arc<RwLock<MidiClip>>, i: usize|{