Skip to content

clippy: late-init temp file and async_trait must_use on a newer toolchain - #8

Merged
MasonRhodesDev merged 1 commit into
mainfrom
clippy-fix
Oct 13, 2026
Merged

MasonRhodesDev merged 1 commit into
mainfrom
clippy-fix

Conversation

@MasonRhodesDev

Copy link
Copy Markdown
Owner

Main's ci job (rustc 1.99 clippy, -D warnings) has been red since 0.3.1 on two pre-existing lints in lmtt-modules: needless_late_init on the script runner's temp file (now an if/else expression) and double_must_use on every async method of ThemeModule, which comes from async_trait's expansion and is allowed on the trait with a note. cargo clippy --workspace --all-targets -- -D warnings, cargo fmt --check and the lmtt-modules tests pass locally.

…hain

CI's clippy (rustc 1.99) rejects two things on main: the script runner's
`_colors_file` was declared and assigned later in each branch
(needless_late_init), and async_trait's expansion of ThemeModule puts a
bare `#[must_use]` on every async method (double_must_use), which is the
macro's doing and is allowed on the trait with a note. Main's ci job had
been red on these since 0.3.1.
@MasonRhodesDev
MasonRhodesDev merged commit e824d2f into main Oct 13, 2026
6 checks passed
@MasonRhodesDev
MasonRhodesDev deleted the clippy-fix branch October 13, 2026 06:32
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.

1 participant