Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-kirby committed May 11, 2021
1 parent f539b75 commit 3e22433
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "taskinator"
version = "0.3.0-alpha"
version = "0.3.0"
authors = ["Sam Kirby <[email protected]>"]
edition = "2018"
license = "AGPL-3.0-or-later"
Expand Down
4 changes: 2 additions & 2 deletions src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ impl Bot {
.iter()
.map(|m| {
let ign = match self.player_names.read().get(&m.user.id) {
Some(ign) => ign.to_owned(),
Some(ign) => ign.clone(),
None => m.known_as(),
};
(
Expand Down Expand Up @@ -592,7 +592,7 @@ impl Bot {
.collect::<Vec<_>>();

if !errors.is_empty() {
let _ = self
let _e_msg = self
.discord_client
.create_message(self.broadcast_channel)
.content("Errors occurred during batch operation, check logs")
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl KnownAs for CachedMember {
fn known_as(&self) -> String {
self.nick
.as_ref()
.map_or_else(|| self.user.name.to_owned(), ToOwned::to_owned)
.map_or_else(|| self.user.name.clone(), Clone::clone)
}
}

Expand Down

0 comments on commit 3e22433

Please sign in to comment.