diff --git a/src/twitch/channels.rs b/src/twitch/channels.rs index 3977374..43f9d23 100644 --- a/src/twitch/channels.rs +++ b/src/twitch/channels.rs @@ -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 }) }) } } diff --git a/src/twitch/mod.rs b/src/twitch/mod.rs index 358aece..6df69bd 100644 --- a/src/twitch/mod.rs +++ b/src/twitch/mod.rs @@ -1,7 +1,7 @@ mod badges; +pub mod channels; mod connection; pub mod oauth; -pub mod channels; use std::{borrow::Borrow, collections::HashMap}; diff --git a/src/ui/components/chat_input.rs b/src/ui/components/chat_input.rs index c11bd48..ca35f0c 100644 --- a/src/ui/components/chat_input.rs +++ b/src/ui/components/chat_input.rs @@ -95,7 +95,12 @@ impl ToString for ChatInputWidget { } impl Component for ChatInputWidget { - fn draw(&mut self, f: &mut Frame, area: Option, emotes: Option<&mut Emotes>) { + fn draw( + &mut self, + f: &mut Frame, + area: Option, + emotes: Option<&mut Emotes>, + ) { self.input.draw(f, area, emotes); } diff --git a/src/ui/components/message_search.rs b/src/ui/components/message_search.rs index ad116b9..34bf9fe 100644 --- a/src/ui/components/message_search.rs +++ b/src/ui/components/message_search.rs @@ -58,7 +58,12 @@ impl ToString for MessageSearchWidget { } impl Component for MessageSearchWidget { - fn draw(&mut self, f: &mut Frame, area: Option, emotes: Option<&mut Emotes>) { + fn draw( + &mut self, + f: &mut Frame, + area: Option, + emotes: Option<&mut Emotes>, + ) { self.input.draw(f, area, emotes); }