Fix clippy::semicolon_if_nothing_returned

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 04:11:52 +02:00
parent 9991052ce5
commit 34f07b6027
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
46 changed files with 108 additions and 108 deletions

View file

@ -44,7 +44,7 @@ impl Clipboard {
State::Connected(clipboard) => match clipboard.write(contents) {
Ok(()) => {}
Err(error) => {
log::warn!("error writing to clipboard: {error}")
log::warn!("error writing to clipboard: {error}");
}
},
State::Unavailable => {}
@ -58,6 +58,6 @@ impl crate::core::Clipboard for Clipboard {
}
fn write(&mut self, contents: String) {
self.write(contents)
self.write(contents);
}
}