style: fix code formatting for CI

- Apply consistent formatting to examples
- Fix Error enum formatting in lib.rs
- Format if-else expressions properly
This commit is contained in:
Stefano Amorelli
2025-08-16 17:36:06 +03:00
parent 5422a3e8b2
commit 71a50a8b95
4 changed files with 28 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Parse
let parser = Parser::new();
let doc = parser.parse_file(&args[1])?;
// Validate
let validator = Validator::new();
match validator.validate(&doc) {
@@ -24,6 +24,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("✗ Validation failed: {}", e);
}
}
Ok(())
}