xso-proc: clippy run
Caught a bug hidden behind #[cfg(not(feature = "minidom"))] Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
5b62672541
commit
4994ac20f9
7 changed files with 22 additions and 22 deletions
|
|
@ -130,7 +130,7 @@ pub(super) fn on_missing_attribute(parent_name: &ParentRef, field: &Member) -> S
|
|||
/// `parent_name` should point at the compound which is being parsed and
|
||||
/// `field` should be the field to which the child belongs.
|
||||
pub(super) fn on_missing_child(parent_name: &ParentRef, field: &Member) -> String {
|
||||
format!("Missing child {} in {}.", FieldName(&field), parent_name)
|
||||
format!("Missing child {} in {}.", FieldName(field), parent_name)
|
||||
}
|
||||
|
||||
/// Create a string error message for a duplicate child element.
|
||||
|
|
@ -141,6 +141,6 @@ pub(super) fn on_duplicate_child(parent_name: &ParentRef, field: &Member) -> Str
|
|||
format!(
|
||||
"{} must not have more than one child in {}.",
|
||||
parent_name,
|
||||
FieldName(&field)
|
||||
FieldName(field)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue