pinakes-plugin-api: restrict validate_element to pub(crate)
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ifdffa6f56261bfa8c4e8a345ba8e9c4f6a6a6964
This commit is contained in:
parent
6d68a83003
commit
e026dcb1e0
1 changed files with 4 additions and 1 deletions
|
|
@ -134,7 +134,10 @@ impl SchemaValidator {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Recursively validate a [`UiElement`] subtree.
|
/// Recursively validate a [`UiElement`] subtree.
|
||||||
pub fn validate_element(element: &UiElement, errors: &mut Vec<String>) {
|
pub(crate) fn validate_element(
|
||||||
|
element: &UiElement,
|
||||||
|
errors: &mut Vec<String>,
|
||||||
|
) {
|
||||||
match element {
|
match element {
|
||||||
UiElement::Container { children, .. }
|
UiElement::Container { children, .. }
|
||||||
| UiElement::Grid { children, .. }
|
| UiElement::Grid { children, .. }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue