Skip to content

Commit

Permalink
Fixes clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Jun 14, 2024
1 parent 59a6c04 commit 7716c53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Widget {
}

fn update_repeat(&mut self, recurrence: &Option<todo_txt::task::Recurrence>) {
self.model.task.recurrence = recurrence.clone();
self.model.task.recurrence.clone_from(recurrence);
}

fn update_priority(&mut self, priority: u8) {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/repeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl relm::Widget for Repeat {
self.widgets.num.set_adjustment(&gtk::Adjustment::new(
0.,
0.,
std::usize::MAX as f64,
usize::MAX as f64,
1.,
5.,
1.,
Expand Down

0 comments on commit 7716c53

Please sign in to comment.