chore: clippy

This commit is contained in:
Ashley Wulber 2024-02-27 17:54:18 -05:00
parent 3e56207b3a
commit 56039608a0
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 5 additions and 9 deletions

View file

@ -58,12 +58,8 @@ impl Clipboard {
if let Ok(reply) = self.request_receiver.recv() {
match reply {
Ok((data, mime)) => {
T::try_from((data, mime)).map_err(|err| std::io::Error::other(err))
},
Err(err) => {
return Err(err);
},
Ok((data, mime)) => T::try_from((data, mime)).map_err(std::io::Error::other),
Err(err) => Err(err),
}
} else {
// The clipboard thread is dead, however we shouldn't crash downstream, so