Skip to content

Minor refactor with if-let guards#145

Merged
itsjunetime merged 1 commit intoitsjunetime:mainfrom
dybucc:if-let-todo-done
Apr 19, 2026
Merged

Minor refactor with if-let guards#145
itsjunetime merged 1 commit intoitsjunetime:mainfrom
dybucc:if-let-todo-done

Conversation

@dybucc
Copy link
Copy Markdown
Contributor

@dybucc dybucc commented Apr 13, 2026

if let guards were stabilized in 1.95 [1]. The code concerning the TODO
has been refactored.

Copy link
Copy Markdown
Owner

@itsjunetime itsjunetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this - I think I'd prefer that we not use tuples in this way, since they make the code somewhat more confusing to read over, but everything else I'm happy with :) if you'd be able to clean up the tuples, I'd be happy to merge this.

Comment thread src/tui.rs Outdated
Comment thread src/tui.rs Outdated
Comment thread src/tui.rs Outdated
Comment thread src/tui.rs Outdated
@itsjunetime
Copy link
Copy Markdown
Owner

build issues cause of pathfinder_simd - you probably need to rebase onto/merge in main

`if let` guards were stabilized in 1.95. The code concerning the TODO has
been refactored.
@dybucc dybucc force-pushed the if-let-todo-done branch from ce3f5ca to bbba249 Compare April 19, 2026 06:09
@dybucc
Copy link
Copy Markdown
Contributor Author

dybucc commented Apr 19, 2026

Sorry, that was the end of my "one expression, no statements" phase. #144 is more idiomatic.

Copy link
Copy Markdown
Owner

@itsjunetime itsjunetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, we've all been there haha. Thanks for fixing that up :)

@itsjunetime itsjunetime merged commit 7448fc7 into itsjunetime:main Apr 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants