Skip to content

Commit

Permalink
Remove invalid_mut when writer.std (#2727)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton authored Dec 6, 2023
1 parent 5c5c82a commit f94f03b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/libs/bindgen/src/rust/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ pub fn writer(writer: &Writer, def: Field) -> TokenStream {

let value = if underlying_type == constant_type {
value
} else if writer.std && underlying_type == Type::ISize {
quote! { ::core::ptr::invalid_mut(#value as _) }
} else {
quote! { #value as _ }
};
Expand Down

0 comments on commit f94f03b

Please sign in to comment.