fix nightly clippy warnings

Note that this still compiles warning-free with rustc 1.70.
This commit is contained in:
Ben Wiederhake
2024-05-09 21:02:30 +02:00
parent 9ef4080352
commit df7bc4e2d9
3 changed files with 3 additions and 5 deletions
+2 -1
View File
@@ -286,7 +286,7 @@ fn actions() {
fn apply(&mut self, arg: Arg) {
match arg {
Arg::Message(m) => {
self.last_message = m.clone();
self.last_message.clone_from(&m);
self.messages.push(m);
}
Arg::Send => self.send = true,
@@ -617,6 +617,7 @@ fn empty_value() {
Val(V),
}
#[allow(dead_code)]
struct Settings {}
impl Options<Arg> for Settings {