[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-08-04 05:21:42 +00:00
parent 609a41afe0
commit 0323e8d71b
4 changed files with 14 additions and 5 deletions

View File

@ -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 })
})
}
}

View File

@ -1,7 +1,7 @@
mod badges;
pub mod channels;
mod connection;
pub mod oauth;
pub mod channels;
use std::{borrow::Borrow, collections::HashMap};

View File

@ -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);
}

View File

@ -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);
}