mirror of
https://github.com/stefanoamorelli/crabrl.git
synced 2026-04-22 01:00:44 +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();
|
let s = arena.get_interned(id1).unwrap();
|
||||||
assert_eq!(s, "test");
|
assert_eq!(s, "test");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,3 +38,4 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -44,4 +44,4 @@ where
|
|||||||
pub fn clear(&self) {
|
pub fn clear(&self) {
|
||||||
self.map.clear();
|
self.map.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ impl InstanceValidator {
|
|||||||
pub fn validate(&self, _document: &Document) -> Result<()> {
|
pub fn validate(&self, _document: &Document) -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,4 +115,4 @@ pub enum Error {
|
|||||||
|
|
||||||
#[error("Not found: {0}")]
|
#[error("Not found: {0}")]
|
||||||
NotFound(String),
|
NotFound(String),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -435,4 +435,4 @@ impl LinkbaseProcessor {
|
|||||||
|
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,4 +156,4 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -349,3 +349,4 @@ impl Document {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1549,4 +1549,4 @@ impl<'a> FullXbrlParser<'a> {
|
|||||||
|
|
||||||
// Implement remaining base methods from parser.rs
|
// Implement remaining base methods from parser.rs
|
||||||
// ... (include all the base parsing methods like read_tag_name, parse_attributes, etc.)
|
// ... (include all the base parsing methods like read_tag_name, parse_attributes, etc.)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -235,4 +235,4 @@ impl Default for Parser {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self::new()
|
Self::new()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -272,4 +272,4 @@ impl SchemaValidator {
|
|||||||
|
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,4 +48,4 @@ mod tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,4 +205,4 @@ mod tests {
|
|||||||
let data = b" \t\n\r<tag>";
|
let data = b" \t\n\r<tag>";
|
||||||
assert_eq!(skip_whitespace(data, 0), 6);
|
assert_eq!(skip_whitespace(data, 0), 6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,4 +95,4 @@ impl Parser {
|
|||||||
|
|
||||||
Ok(doc)
|
Ok(doc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,4 +46,4 @@ impl Taxonomy {
|
|||||||
pub fn load_linkbase(&mut self, _path: &str) -> Result<()> {
|
pub fn load_linkbase(&mut self, _path: &str) -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ impl XbrlValidator {
|
|||||||
// Return error in strict mode if any validation errors
|
// Return error in strict mode if any validation errors
|
||||||
if self.strict_mode && !validation_errors.is_empty() {
|
if self.strict_mode && !validation_errors.is_empty() {
|
||||||
return Err(Error::Validation(format!(
|
return Err(Error::Validation(format!(
|
||||||
"Validation failed with {} errors",
|
"Validation failed with {} errors",
|
||||||
validation_errors.len()
|
validation_errors.len()
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
@@ -558,4 +558,4 @@ pub fn ifrs_validation_rules(doc: &Document) -> Vec<ValidationError> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user