Skip to content

Commit

Permalink
refactor(bot): use cloned replaced map to owned
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed May 19, 2024
1 parent 5e8f257 commit 2ad2a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ async fn roll() -> anyhow::Result<Vec<UpdatePkg>> {

let v = json
.choose_multiple(&mut rng, 10)
.map(|x| x.to_owned())
.cloned()
.collect();

Ok(v)
Expand Down

0 comments on commit 2ad2a1e

Please sign in to comment.