mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-04-11 16:07:55 +09:00
run formatter (diff are maybe due to edition)
This commit is contained in:
parent
b9f6dc6c23
commit
e6e7ada193
3 changed files with 8 additions and 4 deletions
|
@ -9,8 +9,8 @@ use quote::quote;
|
|||
use crate::types::{DataType, Field, MultipleParams, Register, Value};
|
||||
|
||||
use super::{
|
||||
util::{self, RustUxTypes},
|
||||
CodeGenError,
|
||||
util::{self, RustUxTypes},
|
||||
};
|
||||
|
||||
/// Generate underlying `T` and its implementation for `RegisterSpec`.
|
||||
|
|
|
@ -5,7 +5,7 @@ use thiserror::Error;
|
|||
|
||||
use crate::{
|
||||
converter, generator,
|
||||
io::{get_xml_gitinfo, XmlGitInfoError},
|
||||
io::{XmlGitInfoError, get_xml_gitinfo},
|
||||
types, validator,
|
||||
};
|
||||
|
||||
|
|
|
@ -38,13 +38,17 @@ pub enum ValidationError {
|
|||
},
|
||||
#[error("address 0x{address:08x} is out of range: \"{name}\"")]
|
||||
AddressOutofRange { address: u32, name: String },
|
||||
#[error("field masks are duplicated at 0x{address:08x}: \"{reg_name}\", bits: 0x{duplicated_mask:08x}")]
|
||||
#[error(
|
||||
"field masks are duplicated at 0x{address:08x}: \"{reg_name}\", bits: 0x{duplicated_mask:08x}"
|
||||
)]
|
||||
FieldMaskDuplicated {
|
||||
address: u32,
|
||||
reg_name: String,
|
||||
duplicated_mask: u32,
|
||||
},
|
||||
#[error("register \"{name}\" at 0x{address:08x} has mask 0x{reg_mask:08x} that doesn't match sum of field masks: 0x{fields_mask:08x}")]
|
||||
#[error(
|
||||
"register \"{name}\" at 0x{address:08x} has mask 0x{reg_mask:08x} that doesn't match sum of field masks: 0x{fields_mask:08x}"
|
||||
)]
|
||||
RegisterAndFieldMaskMismatch {
|
||||
address: u32,
|
||||
name: String,
|
||||
|
|
Loading…
Add table
Reference in a new issue