mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-08-05 10:19:30 +09:00
update(generator): use full path RegisterSpec traits
to avoid unused `use` warning
This commit is contained in:
parent
4bbb157228
commit
2baf19a190
4 changed files with 9 additions and 9 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue