Skip to content

Commit

Permalink
Merge pull request #943 from psychon/irrefutable-pattern
Browse files Browse the repository at this point in the history
Fix cargo clippy build failure with Rust 1.82
  • Loading branch information
mergify[bot] authored Nov 2, 2024
2 parents 8d43dd0 + 5bfe912 commit 2a0d3e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions x11rb-async/examples/shared_memory_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ async fn main2(file: File) -> Result<(), Box<dyn std::error::Error>> {
async move {
// Spawn a task to read from the connection.
ex.spawn(async move {
if let Err(e) = drive.await {
tracing::error!("Error while driving the connection: {}", e);
match drive.await {
Err(e) => tracing::error!("Error while driving the connection: {}", e),
_ => unreachable!(),
}
})
.detach();
Expand Down
5 changes: 3 additions & 2 deletions x11rb-async/examples/xclock_utc_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ async fn main2() -> Result<(), Box<dyn std::error::Error>> {
async move {
// Spawn a task to poll for events.
let driver = ex.spawn(async move {
if let Err(e) = drive.await {
tracing::error!("Error while driving the connection: {}", e);
match drive.await {
Err(e) => tracing::error!("Error while driving the connection: {}", e),
_ => unreachable!(),
}
});

Expand Down

0 comments on commit 2a0d3e6

Please sign in to comment.