Skip to content

Commit

Permalink
Add missing type hints in fields codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
apohrebniak committed Sep 29, 2024
1 parent b7a89f5 commit 591700e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/src/derives/format/codegen/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ fn as_native_type(ty: &Type) -> Option<String> {
let ty_name = ident.to_string();

match &*ty_name {
"u8" | "u16" | "u32" | "usize" | "i8" | "i16" | "i32" | "isize" | "f32" | "f64"
| "bool" | "str" => Some(ty_name),
"u8" | "u16" | "u32" | "u64" | "u128" | "usize" | "i8" | "i16" | "i32" | "i64"
| "i128" | "isize" | "f32" | "f64" | "bool" | "str" => Some(ty_name),
_ => None,
}
}
Expand Down

0 comments on commit 591700e

Please sign in to comment.