Made the linter for 1.72.0 very happy

This commit is contained in:
Xithrius 2023-08-24 18:23:04 -07:00
parent 3c111e52b7
commit 089c3b2fed
No known key found for this signature in database
GPG Key ID: DF6738B80C155B71
4 changed files with 5 additions and 6 deletions

View File

@ -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 {

View File

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

View File

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

View File

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