-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile-time check to ensure Results
from owned-buffers write path are handled
#6754
Comments
One can make a custom tuple struct |
I don't understand how this is a problem, does it happen because we are crossing the crate boundaries? https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4809433abb7443bc9c7d7f5bde8b4756 |
My understanding from the linked Rust issue is that, if you return a |
Discussed about this, the issue is about that the fact that
But it one will still get |
So, let's just close this? |
When I refactored the pageserver write path to used owned buffers, I used the style of api
The problem is that this masks the
#[must_use]
on theResult
: rust-lang/rust#39524We should figure out a way to preserve the
#[must_use]
warning somehow.One option would be to move the
B
into theResult
, i.e..The text was updated successfully, but these errors were encountered: