refactor(generator): remove impl DataType (use DataType -> RustUxTypes -> Ident)

This commit is contained in:
Wataru Otsubo 2025-02-02 04:10:25 +09:00
parent 7c1a0856a0
commit 4131ce1880

View file

@ -74,13 +74,6 @@ mod util {
}
}
impl DataType {
fn to_rust_type_token(&self) -> proc_macro2::Ident {
match self {
DataType::D32 => proc_macro2::Ident::new("u32", proc_macro2::Span::call_site()),
}
}
}
#[cfg(test)]
mod test {
use super::RustUxTypes;