autofix ~200 warnings

This commit is contained in:
🪞👃🪞 2024-12-19 17:51:47 +01:00
parent 7620739e0d
commit 69bc8e69fd
14 changed files with 21 additions and 28 deletions

View file

@ -1,3 +1,3 @@
pub(crate) mod audio_in; pub(crate) use audio_in::*; pub(crate) mod audio_in;
pub(crate) mod audio_out; pub(crate) use audio_out::*; pub(crate) mod audio_out;
pub(crate) mod sampler; pub(crate) use sampler::*; pub(crate) mod sampler; pub(crate) use sampler::*;

View file

@ -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 audio; pub(crate) use self::audio::*;
pub(crate) mod client; pub(crate) use self::client::*; 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 jack_event; pub(crate) use self::jack_event::*;
pub(crate) mod ports; pub(crate) use self::ports::*; pub(crate) mod ports; pub(crate) use self::ports::*;

View file

@ -2,7 +2,7 @@ pub mod core; pub(crate) 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::*; pub mod space; pub(crate) use self::space::*;
pub mod tui; pub(crate) use self::tui::*; 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 jack; pub(crate) use self::jack::*;
pub mod midi; pub(crate) use self::midi::*; pub mod midi; pub(crate) use self::midi::*;
pub mod audio; pub(crate) use self::audio::*; pub mod audio; pub(crate) use self::audio::*;
@ -71,7 +71,7 @@ pub(crate) use ::jack::{
Client, AsyncClient, ClientOptions, ClientStatus, Client, AsyncClient, ClientOptions, ClientStatus,
ProcessScope, Control, CycleTimes, ProcessScope, Control, CycleTimes,
Port, PortId, Port, PortId,
PortSpec, MidiIn, MidiOut, AudioIn, AudioOut, Unowned, PortSpec, MidiIn, MidiOut, AudioOut, Unowned,
Transport, TransportState, MidiIter, RawMidi, Transport, TransportState, MidiIter, RawMidi,
Frames, Frames,
NotificationHandler, NotificationHandler,

View file

@ -8,17 +8,17 @@ pub(crate) mod direction; pub(crate) use direction::*;
////////////////////////////////////////////////////// //////////////////////////////////////////////////////
pub(crate) mod align; pub(crate) use align::*; pub(crate) mod align;
pub(crate) mod bsp; pub(crate) use bsp::*; pub(crate) mod bsp;
pub(crate) mod cond; pub(crate) use cond::*; pub(crate) mod cond;
pub(crate) mod fill; pub(crate) use fill::*; pub(crate) mod fill;
pub(crate) mod fixed; pub(crate) use fixed::*; pub(crate) mod fixed; pub(crate) use fixed::*;
pub(crate) mod inset_outset; pub(crate) use inset_outset::*; pub(crate) mod inset_outset; pub(crate) use inset_outset::*;
pub(crate) mod layers; pub(crate) use layers::*; pub(crate) mod layers; pub(crate) use layers::*;
pub(crate) mod measure; pub(crate) use measure::*; pub(crate) mod measure; pub(crate) use measure::*;
pub(crate) mod min_max; pub(crate) use min_max::*; pub(crate) mod min_max; pub(crate) use min_max::*;
pub(crate) mod push_pull; pub(crate) use push_pull::*; 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 shrink_grow; pub(crate) use shrink_grow::*;
pub(crate) mod split; pub(crate) use split::*; pub(crate) mod split; pub(crate) use split::*;
pub(crate) mod stack; pub(crate) use stack::*; pub(crate) mod stack; pub(crate) use stack::*;

View file

@ -130,8 +130,8 @@ where
}, },
Direction::Left => { Direction::Left => {
let mut w: E::Unit = 0.into(); let w: E::Unit = 0.into();
let mut h: E::Unit = 0.into(); let h: E::Unit = 0.into();
(self.0)(&mut |component: &dyn Render<E>| { (self.0)(&mut |component: &dyn Render<E>| {
if w < to.w() { if w < to.w() {
todo!(); todo!();

View file

@ -1,4 +1,3 @@
use crate::*;
/// A unit of time, represented as an atomic 64-bit float. /// A unit of time, represented as an atomic 64-bit float.
/// ///

View file

@ -11,7 +11,6 @@ pub use tui_output::TuiOutput;
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
mod tui_style; mod tui_style;
pub(crate) use tui_style::*;
mod tui_theme; mod tui_theme;
pub(crate) use tui_theme::*; pub(crate) use tui_theme::*;
mod tui_border; mod tui_border;
@ -22,7 +21,7 @@ pub(crate) use tui_border::*;
mod app_transport; pub(crate) use app_transport::*; mod app_transport; pub(crate) use app_transport::*;
mod app_sequencer; pub(crate) use app_sequencer::*; mod app_sequencer; pub(crate) use app_sequencer::*;
mod app_sampler; pub(crate) use app_sampler::*; 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::*; 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_scene; pub(crate) use arranger_scene::*;
mod arranger_select; pub(crate) use arranger_select::*; mod arranger_select; pub(crate) use arranger_select::*;
mod arranger_track; pub(crate) use arranger_track::*; 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::*; 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_length; pub(crate) use phrase_length::*;
mod phrase_rename; pub(crate) use phrase_rename::*; mod phrase_rename; pub(crate) use phrase_rename::*;
mod phrase_list; pub(crate) use phrase_list::*; mod phrase_list; pub(crate) use phrase_list::*;
mod port_select; pub(crate) use port_select::*; mod port_select;
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////

View file

@ -1,6 +1,5 @@
use crate::*; use crate::*;
use super::*; use super::*;
use KeyCode::Char;
pub struct GrooveboxTui { pub struct GrooveboxTui {
pub sequencer: SequencerTui, pub sequencer: SequencerTui,
pub sampler: SamplerTui, pub sampler: SamplerTui,

View file

@ -1,6 +1,6 @@
use crate::*; use crate::*;
use ClockCommand::{Play, Pause}; use ClockCommand::{Play, Pause};
use KeyCode::{Tab, BackTab, Char}; use KeyCode::{Tab, Char};
use SequencerCommand::*; use SequencerCommand::*;
use PhraseCommand::*; use PhraseCommand::*;
use PhrasePoolCommand::*; use PhrasePoolCommand::*;

View file

@ -1,7 +1,7 @@
use crate::*; use crate::*;
pub fn to_arranger_clip_command (input: &TuiInput, t: usize, len_t: usize, s: usize, len_s: usize) -> Option<ArrangerCommand> { 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 ArrangerCommand as Cmd;
use ArrangerSelection as Select; use ArrangerSelection as Select;
use ArrangerClipCommand as Clip; use ArrangerClipCommand as Clip;

View file

@ -74,7 +74,7 @@ pub enum ArrangerSceneCommand {
SetColor(usize, ItemPalette), SetColor(usize, ItemPalette),
} }
pub fn to_arranger_scene_command (input: &TuiInput, s: usize, len: usize) -> Option<ArrangerCommand> { 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 ArrangerCommand as Cmd;
use ArrangerSelection as Select; use ArrangerSelection as Select;
use ArrangerSceneCommand as Scene; use ArrangerSceneCommand as Scene;

View file

@ -1,5 +1,5 @@
use crate::*; use crate::*;
use KeyCode::{Char, Down, Left, Right, Delete}; use KeyCode::{Char, Delete};
pub trait HasTracks<T: ArrangerTrackApi>: Send + Sync { pub trait HasTracks<T: ArrangerTrackApi>: Send + Sync {
fn tracks (&self) -> &Vec<T>; fn tracks (&self) -> &Vec<T>;

View file

@ -1,7 +1,4 @@
use crate::*; 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 /// Browses for phrase to import/export
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct FileBrowser { pub struct FileBrowser {

View file

@ -329,7 +329,7 @@ command!(|self: FileBrowserCommand, state: PhraseListModel|{
None None
}); });
input_to_command!(FileBrowserCommand:<Tui>|state:PhraseListModel,from|{ input_to_command!(FileBrowserCommand:<Tui>|state:PhraseListModel,from|{
use PhraseListMode::*;
use FileBrowserCommand::*; use FileBrowserCommand::*;
use KeyCode::{Up, Down, Left, Right, Enter, Esc, Backspace, Char}; use KeyCode::{Up, Down, Left, Right, Enter, Esc, Backspace, Char};
if let Some(PhraseListMode::Import(_index, browser)) = &state.mode { if let Some(PhraseListMode::Import(_index, browser)) = &state.mode {