stanislav-tkach / os_info

Rust library to detect the operating system type
MIT License
175 stars 52 forks source link

Fix issue 300 #303

Closed martintc closed 2 years ago

martintc commented 2 years ago

In #300 an issue was noted with unwrapping the results and in the case of an error. This PR removes the unwrap and matches against the results.

kraileth commented 2 years ago

Tested the fix-issue-300 branch on FreeBSD, MidnightBSD and HardenedBSD. All still work as expected after these changes.