mirror of
https://github.com/Xithrius/twitch-tui.git
synced 2024-10-04 17:17:43 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
609a41afe0
commit
0323e8d71b
@ -63,8 +63,7 @@ pub async fn get_following(twitch_config: &TwitchConfig) -> FollowingList {
|
||||
impl FollowingList {
|
||||
pub fn get_followed_channels(twitch_config: TwitchConfig) -> Self {
|
||||
task::block_in_place(move || {
|
||||
Handle::current()
|
||||
.block_on(async move { get_following(&twitch_config.clone()).await })
|
||||
Handle::current().block_on(async move { get_following(&twitch_config.clone()).await })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
mod badges;
|
||||
pub mod channels;
|
||||
mod connection;
|
||||
pub mod oauth;
|
||||
pub mod channels;
|
||||
|
||||
use std::{borrow::Borrow, collections::HashMap};
|
||||
|
||||
|
@ -95,7 +95,12 @@ impl ToString for ChatInputWidget {
|
||||
}
|
||||
|
||||
impl Component for ChatInputWidget {
|
||||
fn draw<B: Backend>(&mut self, f: &mut Frame<B>, area: Option<Rect>, emotes: Option<&mut Emotes>) {
|
||||
fn draw<B: Backend>(
|
||||
&mut self,
|
||||
f: &mut Frame<B>,
|
||||
area: Option<Rect>,
|
||||
emotes: Option<&mut Emotes>,
|
||||
) {
|
||||
self.input.draw(f, area, emotes);
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,12 @@ impl ToString for MessageSearchWidget {
|
||||
}
|
||||
|
||||
impl Component for MessageSearchWidget {
|
||||
fn draw<B: Backend>(&mut self, f: &mut Frame<B>, area: Option<Rect>, emotes: Option<&mut Emotes>) {
|
||||
fn draw<B: Backend>(
|
||||
&mut self,
|
||||
f: &mut Frame<B>,
|
||||
area: Option<Rect>,
|
||||
emotes: Option<&mut Emotes>,
|
||||
) {
|
||||
self.input.draw(f, area, emotes);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user