Skip to content

Commit

Permalink
chore(examples): Remove redundant pattern match (#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Nov 25, 2024
1 parent 2dc5e31 commit 3c0a00d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/src/streaming/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ fn match_for_io_error(err_status: &Status) -> Option<&std::io::Error> {
}
}

err = match err.source() {
Some(err) => err,
None => return None,
};
err = err.source()?;
}
}

Expand Down

0 comments on commit 3c0a00d

Please sign in to comment.