Skip to content

Conversation

@xushanpu123
Copy link

@xushanpu123 xushanpu123 commented Apr 21, 2023

If file is not a Socket type , file.as_any().downcast_ref::<Socket>() will return None , so its unwrap() will cause a panic. This patch adds a check to return error when file.as_any().downcast_ref is not a Socket type.

If file is not a Socket type , `file.as_any().downcast_ref::<Socket>()` will return None , so its
unwrap() will cause a panic. This patch adds a check to return error when
file.as_any().downcast_ref is not a Socket type.
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