chore: clippy
This commit is contained in:
parent
3e56207b3a
commit
56039608a0
3 changed files with 5 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue