-
Notifications
You must be signed in to change notification settings - Fork 189
ci: fix lints, disable non-determ tests #1045
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
base: main
Are you sure you want to change the base?
Conversation
da0bdbb to
9f56c02
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
9f56c02 to
09fec11
Compare
- `exit` isn't bad for apps, only for libs - `mem_forget` is rarely a mistake, and is trivial to catch - `string_to_string` is superseded by `implicit_clone` - `allow_attributes_without_reason` can be catched by reviewers
lint regression at 26afc32
0366feb to
0ee9bbf
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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.
Pull Request Overview
This PR refactors code to improve type safety and remove unused code. The main changes focus on adding explicit lifetime parameters to Element return types, cleaning up deprecated code, and removing unused clippy lints.
Key changes:
- Added explicit lifetime parameters (
'_) toElementreturn types across view methods - Removed unused
delay_hide_copy_confirmationfunction and inlined delay logic - Removed unused
PickListenum and commented out unusedUserInfofields - Updated CI workflow to add a dedicated
cargo checkstep with warnings as errors
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/gui/widgets/package_row.rs | Added explicit lifetime to Element return type |
| src/gui/views/settings.rs | Added explicit lifetime to Element return type |
| src/gui/views/list.rs | Added explicit lifetimes, inlined delay logic, removed unused function |
| src/gui/views/about.rs | Added explicit lifetime to Element return type |
| src/gui/style.rs | Removed unused PickList enum |
| src/gui/mod.rs | Added explicit lifetime to Element return type |
| src/core/sync.rs | Replaced deprecated attribute with warning comment, changed to_string() to clone() |
| src/core/config.rs | Commented out non-deterministic tests |
| src/core/adb.rs | Commented out unused UserInfo fields and methods |
| Cargo.toml | Removed unused clippy lints and fixed indentation |
| .github/workflows/ci.yml | Added cargo check step and updated clippy configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Command::perform( | ||
| // intentional delay | ||
| async { std::thread::sleep(std::time::Duration::from_secs(1)) }, | ||
| |()| Message::HideCopyConfirmation, | ||
| ), |
Copilot
AI
Oct 31, 2025
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.
Using std::thread::sleep inside an async block is problematic because it blocks the executor thread, preventing other async tasks from running. Replace with tokio::time::sleep or the appropriate async sleep function for your runtime to avoid blocking the async executor.
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.
0ee9bbf to
a3cc388
Compare
This reverts commit 38554ca.
a3cc388 to
f9e4344
Compare
f9e4344 to
15fcd10
Compare
this fixes `unused-doc-comments` lint warn
adb_shell_commandand warn in doc-comment insteadrustcwarnings to errors, without promoting all Clippy warnings