treewide: cleanup
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia01590cdeed872cc8ebd16f6ca95f3cc6a6a6964
This commit is contained in:
parent
3a565689c3
commit
df1c46fa5c
16 changed files with 258 additions and 219 deletions
|
|
@ -275,11 +275,6 @@ impl UiWidget {
|
|||
///
|
||||
/// Returns `SchemaError::ValidationError` if validation fails
|
||||
pub fn validate(&self) -> SchemaResult<()> {
|
||||
if self.id.is_empty() {
|
||||
return Err(SchemaError::ValidationError(
|
||||
"Widget id cannot be empty".to_string(),
|
||||
));
|
||||
}
|
||||
if self.target.is_empty() {
|
||||
return Err(SchemaError::ValidationError(
|
||||
"Widget target cannot be empty".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue