mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Add a link to the Clippy's false positive bug around boxed_local
This commit is contained in:
parent
8dc00d45c1
commit
09111134f9
@ -19,7 +19,8 @@ trait FnBox<A, R> {
|
||||
}
|
||||
|
||||
impl<A, R, F: FnOnce(A) -> R> FnBox<A, R> for F {
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(boxed_local))] // The use of Box is intentional here
|
||||
// False positive: https://github.com/rust-lang-nursery/rust-clippy/issues/1123
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(boxed_local))]
|
||||
fn call_box(self: Box<F>, a: A) -> R {
|
||||
(*self)(a)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user