Closed andreeaflorescu closed 1 year ago
Why can't we use
#[must_use]
?
The must_use
will apply to the Result
, and Result
is already must_use
in Rust. I couldn't find any way to specify that the inner type in a Result is a must_use. The only alternative that I could think of is changing the return type to a custom result type, but that comes with a breaking change and I didn't find it to be worth it. Do you know about an alternative to this? I might be missing something.
Summary of the PR
read_from
when the size of the read is bigger than the size of the reader.Requirements
Before submitting your PR, please make sure you addressed the following requirements:
git commit -s
), and the commit message has max 60 characters for the summary and max 75 characters for each description line.unsafe
code is properly documented.