Skip to content

util: Simplify timeout error handling in Buffer #708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2025

Conversation

cppcoffee
Copy link
Contributor

Refactor the timeout error handling in util/src/buffer/mod.rs to use the ? operator.

This change simplifies the code by using map_err to convert the timeout error to Error::ErrTimeout, which is more concise and idiomatic.

Refactor the timeout error handling in `util/src/buffer/mod.rs` to use the `?` operator.

This change simplifies the code by using `map_err` to convert the timeout error to `Error::ErrTimeout`, which is more concise and idiomatic.

Signed-off-by: Xiaobo Liu <[email protected]>
@yngrtc
Copy link
Collaborator

yngrtc commented Jul 26, 2025

please pay attention to the timeout issue in cargo / Test (macos-latest, stable) (pull_request)

@yngrtc yngrtc merged commit 8c92ba3 into webrtc-rs:master Jul 26, 2025
8 of 9 checks passed
@cppcoffee cppcoffee deleted the buffer branch July 27, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants