Skip to content

Use must_use in *_partial_slice()#175

Merged
mgeier merged 1 commit into
mgeier:mainfrom
mgeier-forks:must-use
Apr 25, 2026
Merged

Use must_use in *_partial_slice()#175
mgeier merged 1 commit into
mgeier:mainfrom
mgeier-forks:must-use

Conversation

@mgeier
Copy link
Copy Markdown
Owner

@mgeier mgeier commented Apr 4, 2026

The *_entire_slice() functions return Result, which already causes a warning if ignored, this PR adds a warning for the *_partial_slice() functions as well.

@JalonWong Could you please review, since this touches the code you have written?

@JalonWong
Copy link
Copy Markdown
Contributor

LGTM

@mgeier mgeier merged commit 9ceddc7 into mgeier:main Apr 25, 2026
22 of 30 checks passed
@mgeier mgeier deleted the must-use branch April 25, 2026 17:29
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.

2 participants