uutils / platform-info

A cross-platform way to get information about your machine
MIT License
85 stars 25 forks source link

clippy: use char instead of closure #81

Closed cakebaker closed 2 months ago

cakebaker commented 2 months ago

This PR fixes a warning from the manual_pattern_char_comparison lint on Windows.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.89%. Comparing base (ea9f41b) to head (124dbc8). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #81 +/- ## ======================================= Coverage 94.89% 94.89% ======================================= Files 4 4 Lines 941 941 ======================================= Hits 893 893 Misses 48 48 ``` | [Flag](https://app.codecov.io/gh/uutils/platform-info/pull/81/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uutils) | Coverage Δ | | |---|---|---| | [macos_latest](https://app.codecov.io/gh/uutils/platform-info/pull/81/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uutils) | `99.30% <ø> (ø)` | | | [ubuntu_latest](https://app.codecov.io/gh/uutils/platform-info/pull/81/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uutils) | `99.31% <ø> (ø)` | | | [windows_latest](https://app.codecov.io/gh/uutils/platform-info/pull/81/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uutils) | `94.40% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uutils#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.