Skip to content

Commit

Permalink
Cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nick42d committed Nov 29, 2024
1 parent 5b4d3bd commit 255deb3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion youtui/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::borrow::Cow;
use std::{io, sync::Arc};
use structures::ListSong;
use tokio::sync::mpsc;
use tracing::{error, info, warn};
use tracing::{error, info};
use tracing_subscriber::prelude::*;
use ui::WindowContext;
use ui::YoutuiWindow;
Expand Down
6 changes: 2 additions & 4 deletions youtui/src/app/component/actionhandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use crossterm::event::{Event, KeyEvent, MouseEvent};
use std::{borrow::Cow, marker::PhantomData};
use ytmapi_rs::common::SearchSuggestion;

pub type ComponentEffect<C: Component> =
AsyncTask<C, <C as Component>::Bkend, <C as Component>::Md>;
pub type ComponentEffect<C> = AsyncTask<C, <C as Component>::Bkend, <C as Component>::Md>;
/// A frontend component - has an associated backend and task metadata type.
pub trait Component {
type Bkend;
Expand Down Expand Up @@ -71,8 +70,7 @@ pub trait Action {
}
}
}
pub type DynKeybindsIter<'a, A: Action + 'static> =
Box<dyn Iterator<Item = &'a KeyCommand<A>> + 'a>;
pub type DynKeybindsIter<'a, A> = Box<dyn Iterator<Item = &'a KeyCommand<A>> + 'a>;
/// A component of the application that has different keybinds depending on what
/// is focussed. For example, keybinds for browser may differ depending on
/// selected pane. A keyrouter does not necessarily need to be a keyhandler and
Expand Down
2 changes: 1 addition & 1 deletion youtui/src/app/ui/browser/artistalbums/albumsongs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::app::keycommand::KeyCommand;
use crate::app::server::{ArcServer, TaskMetadata};
use crate::app::structures::{ListSong, SongListComponent};
use crate::app::ui::action::AppAction;
use crate::app::ui::browser::{Browser, PAGE_KEY_LINES};
use crate::app::ui::browser::Browser;
use crate::app::view::{
Filter, FilterString, SortDirection, SortableTableView, TableFilterCommand, TableSortCommand,
};
Expand Down
1 change: 0 additions & 1 deletion youtui/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::app::component::actionhandler::Action;
use crate::app::ui::action::AppAction;
use crate::get_config_dir;
use crate::Result;
use clap::ValueEnum;
Expand Down

0 comments on commit 255deb3

Please sign in to comment.