-
-
Notifications
You must be signed in to change notification settings - Fork 72
fix clippy, collapse ifs #196
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Important
Looks good to me! 👍
Reviewed everything up to 16c7cff in 4 minutes and 6 seconds. Click for details.
- Reviewed
182
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
6
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/app.rs:524
- Draft comment:
Good refactoring: nested mouse event ifs collapsed using let-chain for clarity. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. src/components/editor.rs:59
- Draft comment:
Nicely collapsed nested ifs in transition_vim_state with let-chain. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
3. src/components/favorites.rs:207
- Draft comment:
Simplified search-empty check using if-let chain for conciseness. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. src/tui.rs:71
- Draft comment:
Improved tick_rate, frame_rate, and mouse setter readability using if-let. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
5. src/utils.rs:43
- Draft comment:
Refactored panic handler exit logic using if-let chain for brevity. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
6. src/app.rs:559
- Draft comment:
Typographical issue: It appears that "last_focused_tab" is intended to be invoked as a function (as seen on line 539). Consider changingself.state.focus = self.last_focused_tab;
toself.state.focus = self.last_focused_tab();
to maintain consistency. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_wYjkFkF87FUgbHkk
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Included in release v0.3.5 |
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Aug 14, 2025
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [achristmascarl/rainfrog](https://github.com/achristmascarl/rainfrog) | patch | `v0.3.4` -> `v0.3.5` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>achristmascarl/rainfrog (achristmascarl/rainfrog)</summary> ### [`v0.3.5`](https://github.com/achristmascarl/rainfrog/releases/tag/v0.3.5) [Compare Source](achristmascarl/rainfrog@v0.3.4...v0.3.5) <!-- Release notes generated using configuration in .github/release.yml at v0.3.5 --> #### What's Changed - fix clippy, collapse ifs by [@​achristmascarl](https://github.com/achristmascarl) in achristmascarl/rainfrog#196 - Bump slab from 0.4.10 to 0.4.11 in the cargo group across 1 directory by [@​dependabot](https://github.com/dependabot)\[bot] in achristmascarl/rainfrog#197 - fix: panic on none unwrap by [@​dshemin](https://github.com/dshemin) in achristmascarl/rainfrog#199 #### New Contributors - [@​dshemin](https://github.com/dshemin) made their first contribution in achristmascarl/rainfrog#199 **Full Changelog**: achristmascarl/rainfrog@v0.3.4...v0.3.5 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42Ni4yIiwidXBkYXRlZEluVmVyIjoiNDEuNjYuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Refactor code by collapsing nested
if
statements usinglet
-else
construct across multiple files to improve readability and maintainability.if
statements usinglet
-else
construct inapp.rs
,editor.rs
,favorites.rs
,tui.rs
, andutils.rs
.app.rs
, refactor mouse event handling logic indraw_layout()
.editor.rs
, refactortransition_vim_state()
to uselet
-else
for command transmission.favorites.rs
, refactor search handling logic inhandle_key_events()
.tui.rs
, refactortick_rate()
,frame_rate()
, andmouse()
methods.utils.rs
, refactor panic handler initialization ininitialize_panic_handler()
.This description was created by
for 16c7cff. You can customize this summary. It will automatically update as commits are pushed.