update(generator): use full path RegisterSpec traits

to avoid unused `use` warning
This commit is contained in:
Wataru Otsubo 2025-05-30 05:19:06 +09:00
parent 4bbb157228
commit 2baf19a190
4 changed files with 9 additions and 9 deletions

View file

@ -76,7 +76,7 @@ fn reg_type_def_masked(
#[derive(Debug, Clone, Copy, Default)]
pub struct #upper_camel_name(pub #type_ux);
impl TryFrom<#type_ux> for #upper_camel_name {
type Error = DataConversionError<#type_ux, Self>;
type Error = register_spec::DataConversionError<#type_ux, Self>;
fn try_from(value: #type_ux) -> Result<Self, Self::Error> {
Ok(Self(value & #mask))
@ -137,7 +137,7 @@ fn reg_type_def_with_field(
#(#code_setters)*
}
impl TryFrom<#type_ux> for #upper_camel_name {
type Error = DataConversionError<#type_ux, Self>;
type Error = register_spec::DataConversionError<#type_ux, Self>;
fn try_from(value: #type_ux) -> Result<Self, Self::Error> {
Ok(Self { inner: value })