You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had a use case where a certain input parameter must trigger some fallback behavior for a specific OS, but clippy reported it as a logical bug:
let v:Vec<_> = ...;ifcfg!(windows) && v.is_empty(){// fallback behavior}else{// default behavior for Unix/non-empty param}
Clippy is correctly reporting that this is equivalent to false && ... on unix systems, but removing the first check (as per the suggestion) does not reflect the actual programmer intent
The text was updated successfully, but these errors were encountered:
Had a use case where a certain input parameter must trigger some fallback behavior for a specific OS, but clippy reported it as a logical bug:
Clippy is correctly reporting that this is equivalent to
false && ...
on unix systems, but removing the first check (as per the suggestion) does not reflect the actual programmer intentThe text was updated successfully, but these errors were encountered: