Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtying committed Jan 15, 2025
1 parent 8adf73e commit 770e672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/state_dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub async fn dump_state(
let send_header_messages = {
let mut stats = stats.lock().await;
if stats.header_messages != header_messages {
stats.header_messages = header_messages.clone();
stats.header_messages.clone_from(&header_messages);
true
} else {
false
Expand Down
2 changes: 1 addition & 1 deletion core/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl BackToTwoSetting {
}
}

pub fn compute(&self, cards: &Vec<Card>) -> bool {
pub fn compute(&self, cards: &[Card]) -> bool {
match self {
BackToTwoSetting::Disabled => false,
BackToTwoSetting::SingleJack => cards.len() == 1 && cards[0].number() == Some(Number::Jack),
Expand Down

0 comments on commit 770e672

Please sign in to comment.