-
Notifications
You must be signed in to change notification settings - Fork 1.7k
boxed_local doesn't work with the FnBox pattern. #916
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
Comments
well... it is "unnecessary" at the implementation site unless you also add a |
See FnBox: https://doc.rust-lang.org/src/alloc/up/src/liballoc/boxed.rs.html#529-533 |
All current clippy issues have been fixed. Only one `boxed_local` warning is left and that is a bug in clippy (see Manishearth/rust-clippy#916).
All current clippy issues have been fixed. Only one `boxed_local` warning is left and that is a bug in clippy (see Manishearth/rust-clippy#916).
All current clippy issues have been fixed. Only one `boxed_local` warning is left and that is a bug in clippy (see Manishearth/rust-clippy#916).
Fixed via #3321 (feel free to re-open if it's still a problem) |
In my template library horrorshow, I have the following definition to allow
RenderOnce::render_once
to be called through a boxedRenderOnce
.This is the same pattern as stdlib's
FnBox
/FnOnce
. Unfortunately, clippy claims that this box is unnecessary:The text was updated successfully, but these errors were encountered: