Skip to content

Commit cc78f57

Browse files
nickpdemarcohkalbasi
authored andcommitted
Allow check_field to be dead_code in generated.rs
1 parent 348dff9 commit cc78f57

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zngur-generator/src/rust.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ pub extern "C" fn {match_check}(i: *mut u8, o: *mut u8) {{ unsafe {{
550550
r#"
551551
const _: [(); {offset}] = [(); ::std::mem::offset_of!({owner}, {name})];
552552
const _: () = {{
553+
#[allow(dead_code)]
553554
fn check_field(value: {owner}) -> {ty} {{
554555
value.{name}
555556
}}

0 commit comments

Comments
 (0)