Skip to content

Satisfy clippy 1.98 - #164

Merged
morgaesis merged 1 commit into
mainfrom
fix/clippy-198
Aug 24, 2026
Merged

morgaesis merged 1 commit into
mainfrom
fix/clippy-198

Conversation

@morgaesis

Copy link
Copy Markdown
Contributor

CI resolves the stable toolchain at run time, and Rust 1.98 brings three clippy lints that fail the warning-free build for every branch, including main. ModelError carried a Usage inline, and the provider cost decimals in Usage put the error over the size bound clippy enforces on Err variants; the usage moves behind a Box, leaving every public signature and accessor unchanged. The two single-element range vectors build through an explicit one-element iterator, and the hex pair walk uses the stabilized as_chunks.

Rust 1.98 promotes three lints that fail the warning-free build. ModelError
carried a Usage inline, and Usage's provider cost decimals put the whole
error over the size bound clippy enforces for Err variants that most
provider-facing results return; the usage moves behind a Box, keeping every
public signature and accessor unchanged. The two single-element range vectors
build through an explicit one-element iterator, which states the intent the
lint exists to question. The hex pair walk uses the stabilized as_chunks.
@morgaesis

Copy link
Copy Markdown
Contributor Author

@postil review

@morgaesis
morgaesis merged commit de3a108 into main Aug 24, 2026
10 checks passed
@morgaesis
morgaesis deleted the fix/clippy-198 branch August 24, 2026 00:25
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