Skip to content

Commit

Permalink
mem::uninitialized is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Aug 24, 2019
1 parent 57da2c3 commit 0bbbc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ impl<'a> Generator<'a> {
t!(writeln!(
self.rust,
r#"
#[allow(non_snake_case, unused_mut, unused_variables)]
#[allow(non_snake_case, unused_mut, unused_variables, deprecated)]
#[inline(never)]
fn roundtrip_padding_{ty}() -> Vec<u8> {{
// stores (offset, size) for each field
Expand Down Expand Up @@ -1926,7 +1926,7 @@ impl<'a> Generator<'a> {
t!(writeln!(
self.rust,
r#"
#[allow(non_snake_case)]
#[allow(non_snake_case, deprecated)]
#[inline(never)]
fn roundtrip_{ty}() {{
use libc::c_int;
Expand Down

0 comments on commit 0bbbc85

Please sign in to comment.