Skip to content

Handle non-WouldBlock errors in smoltcp::phy::Device#102

Merged
datdenkikniet merged 2 commits into
masterfrom
smoltcp-panic
Nov 14, 2025
Merged

Handle non-WouldBlock errors in smoltcp::phy::Device#102
datdenkikniet merged 2 commits into
masterfrom
smoltcp-panic

Conversation

@datdenkikniet

Copy link
Copy Markdown
Contributor

While investigating #100, I realized that unwrap comment was correct, but incomplete: WouldBlock is not the only error that can occur.

Instead of unwrap()-ing, actually handle all error cases and print appropriate messages.

@datdenkikniet datdenkikniet mentioned this pull request Nov 14, 2025
@datdenkikniet
datdenkikniet force-pushed the smoltcp-panic branch 6 times, most recently from d6f83c5 to 5962308 Compare November 14, 2025 21:19
@datdenkikniet
datdenkikniet merged commit 17621c4 into master Nov 14, 2025
57 checks passed
@datdenkikniet
datdenkikniet deleted the smoltcp-panic branch November 14, 2025 21:24
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.

1 participant