style: final formatting fixes for rustfmt

- Remove trailing whitespace
- Add newlines at end of files
- Fix multi-line string formatting
This commit is contained in:
Stefano Amorelli
2025-08-16 17:46:32 +03:00
parent b7a229ead9
commit 84ec605708
16 changed files with 17 additions and 15 deletions

View File

@@ -174,4 +174,4 @@ mod tests {
let s = arena.get_interned(id1).unwrap();
assert_eq!(s, "test");
}
}
}

View File

@@ -38,3 +38,4 @@ fn main() {
}
}

View File

@@ -44,4 +44,4 @@ where
pub fn clear(&self) {
self.map.clear();
}
}
}

View File

@@ -18,4 +18,4 @@ impl InstanceValidator {
pub fn validate(&self, _document: &Document) -> Result<()> {
Ok(())
}
}
}

View File

@@ -115,4 +115,4 @@ pub enum Error {
#[error("Not found: {0}")]
NotFound(String),
}
}

View File

@@ -435,4 +435,4 @@ impl LinkbaseProcessor {
errors
}
}
}

View File

@@ -156,4 +156,4 @@ fn main() -> Result<()> {
}
Ok(())
}
}

View File

@@ -349,3 +349,4 @@ impl Document {
}

View File

@@ -1549,4 +1549,4 @@ impl<'a> FullXbrlParser<'a> {
// Implement remaining base methods from parser.rs
// ... (include all the base parsing methods like read_tag_name, parse_attributes, etc.)
}
}

View File

@@ -235,4 +235,4 @@ impl Default for Parser {
fn default() -> Self {
Self::new()
}
}
}

View File

@@ -272,4 +272,4 @@ impl SchemaValidator {
errors
}
}
}

View File

@@ -48,4 +48,4 @@ mod tests {
}
}
}
}
}

View File

@@ -205,4 +205,4 @@ mod tests {
let data = b" \t\n\r<tag>";
assert_eq!(skip_whitespace(data, 0), 6);
}
}
}

View File

@@ -95,4 +95,4 @@ impl Parser {
Ok(doc)
}
}
}

View File

@@ -46,4 +46,4 @@ impl Taxonomy {
pub fn load_linkbase(&mut self, _path: &str) -> Result<()> {
Ok(())
}
}
}

View File

@@ -71,7 +71,7 @@ impl XbrlValidator {
// Return error in strict mode if any validation errors
if self.strict_mode && !validation_errors.is_empty() {
return Err(Error::Validation(format!(
"Validation failed with {} errors",
"Validation failed with {} errors",
validation_errors.len()
)));
}
@@ -558,4 +558,4 @@ pub fn ifrs_validation_rules(doc: &Document) -> Vec<ValidationError> {
}
errors
}
}