ci: fix lints, disable non-determ tests#1045
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.
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, | ||
| ), |
There was a problem hiding this comment.
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.
0ee9bbf to
a3cc388
Compare
This reverts commit 38554ca.
a3cc388 to
f9e4344
Compare
f9e4344 to
15fcd10
Compare
this fixes `unused-doc-comments` lint warn
commit e430a6d Author: foot fondler <227344378+johny579@users.noreply.github.com> Date: Sun Nov 16 13:07:24 2025 +0000 pkg(androidtv, blackview, bluestacks, google, samsung, unisoc, waydroid): add packages (#1154) * Android TV; Blackview; Google; and Samsung. * Update uad_lists.json * Update uad_lists.json * Change removal and description com.android.dialer Advanced → Expert com.google.android.marvin.talkback Recommended → Advanced com.android.bluetoothmidiservice Recommended → Advanced * Update uad_lists.json * Change Google Speech Services to recommended * Changed some apps from Recommended to Advanced com.android.keyguard Recommended → Advanced com.huawei.ohos.inputmethod Recommended → Advanced com.samsung.android.net.wifi.wifiguider Recommended → Advanced * Delete empty line * Added emulator apps to close #1145 * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * 16 apps added * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * 4 Japanese carrier apps * Update uad_lists.json --------- Co-authored-by: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com> commit c197541 Merge: 6594a15 337d5e5 Author: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com> Date: Sun Nov 16 11:54:10 2025 +0100 Merge pull request #1157 from Universal-Debloater-Alliance/pkg/xiaomi pkg(com.xiaomi.aicr): change description and removal commit 6594a15 Author: QQ喵 <gqqnb2005@gmail.com> Date: Sun Nov 16 11:52:54 2025 +0100 pkg(OnePlus) Make it explicit that com.oplus.athena kills apps (#1156) * Make it explicit that athena kills apps * Add a reference link commit d29e927 Merge: f0655e7 f956c5d Author: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com> Date: Sun Nov 16 11:39:27 2025 +0100 Merge pull request #1045 from Universal-Debloater-Alliance/ci/fix-lints-tests ci: fix lints, disable non-determ tests commit 337d5e5 Author: Muriilo <87148235+Muriilow@users.noreply.github.com> Date: Fri Nov 14 17:46:46 2025 -0300 pkg(Xiaomi) Changing package recommended and description commit f956c5d Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri Oct 31 19:21:45 2025 -0400 docs(main): rm redundant doc-comment this fixes `unused-doc-comments` lint warn commit 15fcd10 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri Oct 31 18:00:28 2025 -0400 ci(cargo-check): deny warns commit d74a30b Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri Oct 31 17:31:27 2025 -0400 Revert "ci(cargo): replace `check` by `clippy`" This reverts commit 38554ca. commit ab3081b Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 19:29:17 2025 -0400 style(gui/views/list): `pkg`->`p` rename, to not shadow `pkg` commit fb131df Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 19:11:39 2025 -0400 ci(adb): use `debug_assert` to not trigger `panic_in_result_fn` commit 0dc61c8 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 19:03:42 2025 -0400 refactor(adb): comment-out all `running` (user) stuff commit 956d64a Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 18:44:02 2025 -0400 refactor(gui/views/list): inline `delay_hide_copy_confirmation` fn added in 2ca3e05 commit 6a8ac88 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 18:17:42 2025 -0400 ci: disable `test_save_changes` commit 7477f02 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 16:04:58 2025 -0400 refactor: rm `PickList` (unused) commit 3fabd4a Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 16:01:24 2025 -0400 refactor(gui/views/list): mark unused var lint regression at 26afc32 commit 760b21d Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 21:06:25 2025 -0400 ci(clippy): rm some lints - `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 commit d383da8 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 20:21:56 2025 -0400 ci: `cargo clippy --fix; cargo fmt` commit 54308e1 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 20:18:06 2025 -0400 ci(adb-sync): un-deprecate `adb_shell_command`; add warn to docs commit 2729c72 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 20:25:03 2025 -0400 ci: rm `config.devices.len()` assertion
commit e430a6d Author: foot fondler <227344378+johny579@users.noreply.github.com> Date: Sun Nov 16 13:07:24 2025 +0000 pkg(androidtv, blackview, bluestacks, google, samsung, unisoc, waydroid): add packages (#1154) * Android TV; Blackview; Google; and Samsung. * Update uad_lists.json * Update uad_lists.json * Change removal and description com.android.dialer Advanced → Expert com.google.android.marvin.talkback Recommended → Advanced com.android.bluetoothmidiservice Recommended → Advanced * Update uad_lists.json * Change Google Speech Services to recommended * Changed some apps from Recommended to Advanced com.android.keyguard Recommended → Advanced com.huawei.ohos.inputmethod Recommended → Advanced com.samsung.android.net.wifi.wifiguider Recommended → Advanced * Delete empty line * Added emulator apps to close #1145 * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * 16 apps added * Update uad_lists.json * Update uad_lists.json * Update uad_lists.json * 4 Japanese carrier apps * Update uad_lists.json --------- Co-authored-by: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com> commit c197541 Merge: 6594a15 337d5e5 Author: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com> Date: Sun Nov 16 11:54:10 2025 +0100 Merge pull request #1157 from Universal-Debloater-Alliance/pkg/xiaomi pkg(com.xiaomi.aicr): change description and removal commit 6594a15 Author: QQ喵 <gqqnb2005@gmail.com> Date: Sun Nov 16 11:52:54 2025 +0100 pkg(OnePlus) Make it explicit that com.oplus.athena kills apps (#1156) * Make it explicit that athena kills apps * Add a reference link commit d29e927 Merge: f0655e7 f956c5d Author: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com> Date: Sun Nov 16 11:39:27 2025 +0100 Merge pull request #1045 from Universal-Debloater-Alliance/ci/fix-lints-tests ci: fix lints, disable non-determ tests commit 337d5e5 Author: Muriilo <87148235+Muriilow@users.noreply.github.com> Date: Fri Nov 14 17:46:46 2025 -0300 pkg(Xiaomi) Changing package recommended and description commit f956c5d Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri Oct 31 19:21:45 2025 -0400 docs(main): rm redundant doc-comment this fixes `unused-doc-comments` lint warn commit 15fcd10 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri Oct 31 18:00:28 2025 -0400 ci(cargo-check): deny warns commit d74a30b Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri Oct 31 17:31:27 2025 -0400 Revert "ci(cargo): replace `check` by `clippy`" This reverts commit 38554ca. commit ab3081b Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 19:29:17 2025 -0400 style(gui/views/list): `pkg`->`p` rename, to not shadow `pkg` commit fb131df Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 19:11:39 2025 -0400 ci(adb): use `debug_assert` to not trigger `panic_in_result_fn` commit 0dc61c8 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 19:03:42 2025 -0400 refactor(adb): comment-out all `running` (user) stuff commit 956d64a Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 18:44:02 2025 -0400 refactor(gui/views/list): inline `delay_hide_copy_confirmation` fn added in 2ca3e05 commit 6a8ac88 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 18:17:42 2025 -0400 ci: disable `test_save_changes` commit 7477f02 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 16:04:58 2025 -0400 refactor: rm `PickList` (unused) commit 3fabd4a Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Wed Aug 13 16:01:24 2025 -0400 refactor(gui/views/list): mark unused var lint regression at 26afc32 commit 760b21d Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 21:06:25 2025 -0400 ci(clippy): rm some lints - `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 commit d383da8 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 20:21:56 2025 -0400 ci: `cargo clippy --fix; cargo fmt` commit 54308e1 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 20:18:06 2025 -0400 ci(adb-sync): un-deprecate `adb_shell_command`; add warn to docs commit 2729c72 Author: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sat Aug 9 20:25:03 2025 -0400 ci: rm `config.devices.len()` assertion Merge branch 'main' into pkg/blackview
adb_shell_commandand warn in doc-comment insteadrustcwarnings to errors, without promoting all Clippy warnings