Skip to content

Commit

Permalink
fixup: Fix broken formatting of cargo clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Feb 17, 2024
1 parent 73b6d14 commit e48756c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/desktop/game_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ impl<'a> GameMode<'a> {
.await?;
match status {
RegisterStatus::Success => Ok(()),
RegisterStatus::Rejected => Err(Error::Portal(PortalError::Failed("Failed to register by pidfd".to_string()))),
RegisterStatus::Rejected => Err(Error::Portal(PortalError::Failed(
"Failed to register by pidfd".to_string(),
))),
}
}

Expand Down Expand Up @@ -267,7 +269,9 @@ impl<'a> GameMode<'a> {
.await?;
match status {
RegisterStatus::Success => Ok(()),
RegisterStatus::Rejected => Err(Error::Portal(PortalError::Failed("Failed to unregister by pidfd`".to_string()))),
RegisterStatus::Rejected => Err(Error::Portal(PortalError::Failed(
"Failed to unregister by pidfd`".to_string(),
))),
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/desktop/trash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ impl<'a> TrashProxy<'a> {
pub async fn trash_file(&self, fd: &BorrowedFd<'_>) -> Result<(), Error> {
let status = self.0.call("TrashFile", &(Fd::from(fd))).await?;
match status {
TrashStatus::Failed => Err(Error::Portal(PortalError::Failed("Failed to trash file".to_string()))),
TrashStatus::Failed => Err(Error::Portal(PortalError::Failed(
"Failed to trash file".to_string(),
))),
TrashStatus::Succeeded => Ok(()),
}
}
Expand Down

0 comments on commit e48756c

Please sign in to comment.