fix clippy warnings

This commit is contained in:
Ferdinand Schober
2024-07-12 17:13:10 +02:00
parent e063f4ffb4
commit 740272e9a5
3 changed files with 14 additions and 16 deletions

View File

@@ -79,15 +79,14 @@ pub enum EmulationCreationError {
impl EmulationCreationError {
/// request was intentionally denied by the user
pub(crate) fn cancelled_by_user(&self) -> bool {
match self {
matches!(
self,
EmulationCreationError::Libei(LibeiEmulationCreationError::Ashpd(Response(
ResponseError::Cancelled,
)))
| EmulationCreationError::Xdp(XdpEmulationCreationError::Ashpd(Response(
))) | EmulationCreationError::Xdp(XdpEmulationCreationError::Ashpd(Response(
ResponseError::Cancelled,
))) => true,
_ => false,
}
)))
)
}
}