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
The current implementation of the lint functions in the lints.rs module consists of a great number of the deeply nested if let statements with the intermediate logic inside the condition blocks.
Some block could not be avoided, since the dyn keyword inside the pattern matches is not stable yet, but even without it there is a lot of repetitive and hard to maintain code, which potentially can migrate to the other exercise analyzers.
So it would be great to see if the code could be somehow refactored for better readability/maintainability.
The text was updated successfully, but these errors were encountered:
The current implementation of the lint functions in the
lints.rs
module consists of a great number of the deeply nestedif let
statements with the intermediate logic inside the condition blocks.Some block could not be avoided, since the
dyn
keyword inside the pattern matches is not stable yet, but even without it there is a lot of repetitive and hard to maintain code, which potentially can migrate to the other exercise analyzers.So it would be great to see if the code could be somehow refactored for better readability/maintainability.
The text was updated successfully, but these errors were encountered: