Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Jan 20, 2024
1 parent 6f5ea16 commit 959aa6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ impl Client {
}
}
Command::Numeric(RPL_UNAWAY, args) => {
let nick = args.get(0)?.as_str();
let nick = args.first()?.as_str();
let user = User::try_from(nick).ok()?;

if user.nickname() == self.nickname() {
Expand All @@ -600,7 +600,7 @@ impl Client {
}
}
Command::Numeric(RPL_NOWAWAY, args) => {
let nick = args.get(0)?.as_str();
let nick = args.first()?.as_str();
let user = User::try_from(nick).ok()?;

if user.nickname() == self.nickname() {
Expand Down
2 changes: 1 addition & 1 deletion data/src/history/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl Manager {
} => {
let user_query = queries.find(|nick| user.nickname() == *nick);

message::broadcast::quit(user_channels, user_query, &user, &comment, &config)
message::broadcast::quit(user_channels, user_query, &user, &comment, config)
}
Broadcast::Nickname {
old_nick,
Expand Down

0 comments on commit 959aa6a

Please sign in to comment.