mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
autofix ~200 warnings
This commit is contained in:
parent
7620739e0d
commit
69bc8e69fd
14 changed files with 21 additions and 28 deletions
|
|
@ -1,3 +1,3 @@
|
|||
pub(crate) mod audio_in; pub(crate) use audio_in::*;
|
||||
pub(crate) mod audio_out; pub(crate) use audio_out::*;
|
||||
pub(crate) mod audio_in;
|
||||
pub(crate) mod audio_out;
|
||||
pub(crate) mod sampler; pub(crate) use sampler::*;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
use crate::*;
|
||||
|
||||
pub(crate) mod activate; pub(crate) use self::activate::*;
|
||||
pub(crate) mod activate;
|
||||
pub(crate) mod audio; pub(crate) use self::audio::*;
|
||||
pub(crate) mod client; pub(crate) use self::client::*;
|
||||
pub(crate) mod from_jack; pub(crate) use self::from_jack::*;
|
||||
pub(crate) mod from_jack;
|
||||
pub(crate) mod jack_event; pub(crate) use self::jack_event::*;
|
||||
pub(crate) mod ports; pub(crate) use self::ports::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ pub mod core; pub(crate) use self::core::*;
|
|||
pub mod time; pub(crate) use self::time::*;
|
||||
pub mod space; pub(crate) use self::space::*;
|
||||
pub mod tui; pub(crate) use self::tui::*;
|
||||
pub mod edn; pub(crate) use self::edn::*;
|
||||
pub mod edn;
|
||||
pub mod jack; pub(crate) use self::jack::*;
|
||||
pub mod midi; pub(crate) use self::midi::*;
|
||||
pub mod audio; pub(crate) use self::audio::*;
|
||||
|
|
@ -71,7 +71,7 @@ pub(crate) use ::jack::{
|
|||
Client, AsyncClient, ClientOptions, ClientStatus,
|
||||
ProcessScope, Control, CycleTimes,
|
||||
Port, PortId,
|
||||
PortSpec, MidiIn, MidiOut, AudioIn, AudioOut, Unowned,
|
||||
PortSpec, MidiIn, MidiOut, AudioOut, Unowned,
|
||||
Transport, TransportState, MidiIter, RawMidi,
|
||||
Frames,
|
||||
NotificationHandler,
|
||||
|
|
|
|||
|
|
@ -8,17 +8,17 @@ pub(crate) mod direction; pub(crate) use direction::*;
|
|||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
pub(crate) mod align; pub(crate) use align::*;
|
||||
pub(crate) mod bsp; pub(crate) use bsp::*;
|
||||
pub(crate) mod cond; pub(crate) use cond::*;
|
||||
pub(crate) mod fill; pub(crate) use fill::*;
|
||||
pub(crate) mod align;
|
||||
pub(crate) mod bsp;
|
||||
pub(crate) mod cond;
|
||||
pub(crate) mod fill;
|
||||
pub(crate) mod fixed; pub(crate) use fixed::*;
|
||||
pub(crate) mod inset_outset; pub(crate) use inset_outset::*;
|
||||
pub(crate) mod layers; pub(crate) use layers::*;
|
||||
pub(crate) mod measure; pub(crate) use measure::*;
|
||||
pub(crate) mod min_max; pub(crate) use min_max::*;
|
||||
pub(crate) mod push_pull; pub(crate) use push_pull::*;
|
||||
pub(crate) mod scroll; pub(crate) use scroll::*;
|
||||
pub(crate) mod scroll;
|
||||
pub(crate) mod shrink_grow; pub(crate) use shrink_grow::*;
|
||||
pub(crate) mod split; pub(crate) use split::*;
|
||||
pub(crate) mod stack; pub(crate) use stack::*;
|
||||
|
|
|
|||
|
|
@ -130,8 +130,8 @@ where
|
|||
},
|
||||
|
||||
Direction::Left => {
|
||||
let mut w: E::Unit = 0.into();
|
||||
let mut h: E::Unit = 0.into();
|
||||
let w: E::Unit = 0.into();
|
||||
let h: E::Unit = 0.into();
|
||||
(self.0)(&mut |component: &dyn Render<E>| {
|
||||
if w < to.w() {
|
||||
todo!();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use crate::*;
|
||||
|
||||
/// A unit of time, represented as an atomic 64-bit float.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ pub use tui_output::TuiOutput;
|
|||
////////////////////////////////////////////////////////
|
||||
|
||||
mod tui_style;
|
||||
pub(crate) use tui_style::*;
|
||||
mod tui_theme;
|
||||
pub(crate) use tui_theme::*;
|
||||
mod tui_border;
|
||||
|
|
@ -22,7 +21,7 @@ pub(crate) use tui_border::*;
|
|||
mod app_transport; pub(crate) use app_transport::*;
|
||||
mod app_sequencer; pub(crate) use app_sequencer::*;
|
||||
mod app_sampler; pub(crate) use app_sampler::*;
|
||||
mod app_groovebox; pub(crate) use app_groovebox::*;
|
||||
mod app_groovebox;
|
||||
mod app_arranger; pub(crate) use app_arranger::*;
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
|
|
@ -31,7 +30,7 @@ mod arranger_clip; pub(crate) use arranger_clip::*;
|
|||
mod arranger_scene; pub(crate) use arranger_scene::*;
|
||||
mod arranger_select; pub(crate) use arranger_select::*;
|
||||
mod arranger_track; pub(crate) use arranger_track::*;
|
||||
mod arranger_mode_h; pub(crate) use arranger_mode_h::*;
|
||||
mod arranger_mode_h;
|
||||
mod arranger_mode_v; pub(crate) use arranger_mode_v::*;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
|
@ -43,7 +42,7 @@ mod piano_horizontal; pub(crate) use piano_horizontal::*;
|
|||
mod phrase_length; pub(crate) use phrase_length::*;
|
||||
mod phrase_rename; pub(crate) use phrase_rename::*;
|
||||
mod phrase_list; pub(crate) use phrase_list::*;
|
||||
mod port_select; pub(crate) use port_select::*;
|
||||
mod port_select;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
use crate::*;
|
||||
use super::*;
|
||||
use KeyCode::Char;
|
||||
pub struct GrooveboxTui {
|
||||
pub sequencer: SequencerTui,
|
||||
pub sampler: SamplerTui,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::*;
|
||||
use ClockCommand::{Play, Pause};
|
||||
use KeyCode::{Tab, BackTab, Char};
|
||||
use KeyCode::{Tab, Char};
|
||||
use SequencerCommand::*;
|
||||
use PhraseCommand::*;
|
||||
use PhrasePoolCommand::*;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::*;
|
||||
|
||||
pub fn to_arranger_clip_command (input: &TuiInput, t: usize, len_t: usize, s: usize, len_s: usize) -> Option<ArrangerCommand> {
|
||||
use KeyCode::{Char, Up, Down, Left, Right, Delete};
|
||||
use KeyCode::{Char, Delete};
|
||||
use ArrangerCommand as Cmd;
|
||||
use ArrangerSelection as Select;
|
||||
use ArrangerClipCommand as Clip;
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ pub enum ArrangerSceneCommand {
|
|||
SetColor(usize, ItemPalette),
|
||||
}
|
||||
pub fn to_arranger_scene_command (input: &TuiInput, s: usize, len: usize) -> Option<ArrangerCommand> {
|
||||
use KeyCode::{Char, Up, Down, Right, Enter, Delete};
|
||||
use KeyCode::{Char, Delete};
|
||||
use ArrangerCommand as Cmd;
|
||||
use ArrangerSelection as Select;
|
||||
use ArrangerSceneCommand as Scene;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::*;
|
||||
use KeyCode::{Char, Down, Left, Right, Delete};
|
||||
use KeyCode::{Char, Delete};
|
||||
|
||||
pub trait HasTracks<T: ArrangerTrackApi>: Send + Sync {
|
||||
fn tracks (&self) -> &Vec<T>;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
use crate::*;
|
||||
use KeyCode::{Up, Down, Right, Left, Enter, Esc, Char, Backspace};
|
||||
use FileBrowserCommand::*;
|
||||
use super::phrase_list::PhraseListMode::{Import, Export};
|
||||
/// Browses for phrase to import/export
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct FileBrowser {
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ command!(|self: FileBrowserCommand, state: PhraseListModel|{
|
|||
None
|
||||
});
|
||||
input_to_command!(FileBrowserCommand:<Tui>|state:PhraseListModel,from|{
|
||||
use PhraseListMode::*;
|
||||
|
||||
use FileBrowserCommand::*;
|
||||
use KeyCode::{Up, Down, Left, Right, Enter, Esc, Backspace, Char};
|
||||
if let Some(PhraseListMode::Import(_index, browser)) = &state.mode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue