-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused peekable
operations from swayfmt
#2915
Conversation
@mitchmindtree hmm, I know this change was at your request initially but |
Ahh, clippy is likely complaining as we're no longer using Previously in these loops we were:
The reason I suggested checking if we should be using |
I think I see now, I'll take another look tomorrow morning |
@mitchmindtree is there a reason we wouldn't want to consume the iterator here? Looking again, I removed the |
I went ahead and removed |
Ahhhh in that case, if there's no need for peek, we can switch back to consuming the iterator with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the warning is ignored
for
loops to while let
in peekable
iterationspeekable
operations from swayfmt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #2496