mirror of
https://github.com/Xithrius/twitch-tui.git
synced 2024-10-04 09:07:33 +03:00
Made the linter for 1.72.0 very happy
This commit is contained in:
parent
3c111e52b7
commit
089c3b2fed
@ -56,7 +56,7 @@ pub struct Config {
|
||||
}
|
||||
|
||||
impl Events {
|
||||
pub async fn with_config(config: Config) -> Self {
|
||||
pub fn with_config(config: Config) -> Self {
|
||||
let (tx, rx) = mpsc::channel(100);
|
||||
|
||||
tokio::spawn(async move {
|
||||
|
@ -45,8 +45,7 @@ pub async fn ui_driver(
|
||||
let mut events = Events::with_config(Config {
|
||||
exit_key: Key::Null,
|
||||
tick_rate: Duration::from_millis(config.terminal.delay),
|
||||
})
|
||||
.await;
|
||||
});
|
||||
|
||||
let mut terminal = init_terminal(&config.frontend);
|
||||
|
||||
@ -61,7 +60,7 @@ pub async fn ui_driver(
|
||||
// Clear the emotes to use the ones from the right channel.
|
||||
app.emotes.unload();
|
||||
app.emotes.emotes = e;
|
||||
for message in app.messages.borrow_mut().iter_mut() {
|
||||
for message in &mut *app.messages.borrow_mut() {
|
||||
message.parse_emotes(&mut app.emotes);
|
||||
}
|
||||
};
|
||||
|
@ -277,7 +277,7 @@ pub async fn handle_roomstate<S: BuildHasher>(
|
||||
) {
|
||||
let mut room_state = String::new();
|
||||
|
||||
for (name, value) in tags.iter() {
|
||||
for (name, value) in tags {
|
||||
match *name {
|
||||
"emote-only" if *value == "1" => {
|
||||
room_state.push_str("The channel is emote-only.\n");
|
||||
|
@ -114,7 +114,7 @@ impl ChatWidget {
|
||||
|
||||
let config = self.config.borrow();
|
||||
|
||||
'outer: for data in messages_data.iter() {
|
||||
'outer: for data in messages_data {
|
||||
if self
|
||||
.filters
|
||||
.borrow()
|
||||
|
Loading…
Reference in New Issue
Block a user