mirror of
https://github.com/stefanoamorelli/crabrl.git
synced 2026-04-18 07:10:42 +00:00
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:
@@ -174,4 +174,4 @@ mod tests {
|
||||
let s = arena.get_interned(id1).unwrap();
|
||||
assert_eq!(s, "test");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,3 +38,4 @@ fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -44,4 +44,4 @@ where
|
||||
pub fn clear(&self) {
|
||||
self.map.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,4 +18,4 @@ impl InstanceValidator {
|
||||
pub fn validate(&self, _document: &Document) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,4 +115,4 @@ pub enum Error {
|
||||
|
||||
#[error("Not found: {0}")]
|
||||
NotFound(String),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -435,4 +435,4 @@ impl LinkbaseProcessor {
|
||||
|
||||
errors
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,4 +156,4 @@ fn main() -> Result<()> {
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,3 +349,4 @@ impl Document {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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.)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,4 +235,4 @@ impl Default for Parser {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,4 +272,4 @@ impl SchemaValidator {
|
||||
|
||||
errors
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,4 @@ mod tests {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,4 +205,4 @@ mod tests {
|
||||
let data = b" \t\n\r<tag>";
|
||||
assert_eq!(skip_whitespace(data, 0), 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,4 +95,4 @@ impl Parser {
|
||||
|
||||
Ok(doc)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,4 +46,4 @@ impl Taxonomy {
|
||||
pub fn load_linkbase(&mut self, _path: &str) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user