somehow, no warnings

This commit is contained in:
🪞👃🪞 2024-12-27 16:00:31 +01:00
parent 8652a5e415
commit a64925ba8c
7 changed files with 118 additions and 118 deletions

View file

@ -1,6 +1,9 @@
pub(crate) use std::error::Error;
pub(crate) mod color; pub(crate) use color::*;
pub(crate) mod color;
pub(crate) use color::*;
pub use color::*;
pub(crate) mod command; pub(crate) use command::*;
pub(crate) mod engine; pub(crate) use engine::*;
pub(crate) mod focus; pub(crate) use focus::*;

View file

@ -1,9 +1,9 @@
#![allow(unused)]
#![allow(clippy::unit_arg)]
pub mod core; pub use self::core::*;
pub mod core; pub use self::core::*;
pub mod time; pub(crate) use self::time::*;
pub mod time; pub(crate) use self::time::*;
pub mod space; pub(crate) use self::space::*;
@ -41,7 +41,7 @@ pub(crate) use crossterm::terminal::{EnterAlternateScreen, LeaveAlternateScreen,
pub(crate) use crossterm::event::{KeyCode, KeyModifiers, KeyEvent, KeyEventKind, KeyEventState};
pub use ::ratatui; pub(crate) use ratatui::{
prelude::{Style, Color, Buffer},
prelude::{Style, Buffer},
style::{Stylize, Modifier},
backend::{Backend, CrosstermBackend, ClearType}
};

View file

@ -7,15 +7,15 @@ use PhrasePoolCommand::*;
/// Root view for standalone `tek_sequencer`.
pub struct SequencerTui {
_jack: Arc<RwLock<JackClient>>,
pub(crate) clock: ClockModel,
pub(crate) phrases: PoolModel,
pub(crate) player: MidiPlayer,
pub(crate) editor: MidiEditorModel,
pub(crate) size: Measure<Tui>,
pub(crate) status: bool,
pub(crate) note_buf: Vec<u8>,
pub(crate) midi_buf: Vec<Vec<Vec<u8>>>,
pub(crate) perf: PerfModel,
pub clock: ClockModel,
pub phrases: PoolModel,
pub player: MidiPlayer,
pub editor: MidiEditorModel,
pub size: Measure<Tui>,
pub status: bool,
pub note_buf: Vec<u8>,
pub midi_buf: Vec<Vec<Vec<u8>>>,
pub perf: PerfModel,
}
from_jack!(|jack|SequencerTui {
let clock = ClockModel::from(jack);

View file

@ -26,13 +26,13 @@ impl ArrangerTui {
}
#[derive(Debug)] pub struct ArrangerTrack {
/// Name of track
pub(crate) name: Arc<RwLock<String>>,
pub name: Arc<RwLock<String>>,
/// Preferred width of track column
pub(crate) width: usize,
pub width: usize,
/// Identifying color of track
pub(crate) color: ItemPalette,
pub color: ItemPalette,
/// MIDI player state
pub(crate) player: MidiPlayer,
pub player: MidiPlayer,
}
has_clock!(|self:ArrangerTrack|self.player.clock());
has_player!(|self:ArrangerTrack|self.player);