Auto merge of #806 - varkor:patch-1, r=RalfJung
Fix `unused_must_use` inside `Box` After https://github.com/rust-lang/rust/pull/62228, this will be linted against (and causes the test to fail). (This blocks https://github.com/rust-lang/rust/pull/62228.)
This commit is contained in:
commit
72b2e1045d
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,9 @@ pub enum Handler {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
take(Handler::Default, Box::new(main));
|
||||
#[allow(unused_must_use)] {
|
||||
take(Handler::Default, Box::new(main));
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue