Fix some formatting issues, mostly around comments and whitespace.

This commit is contained in:
2023-05-09 21:29:38 -07:00
parent d0c7e02928
commit c870eeeca3
15 changed files with 95 additions and 95 deletions

View File

@@ -102,17 +102,17 @@ impl PartialEq for EvalError {
EvalError::Linker(a) => match other { EvalError::Linker(a) => match other {
EvalError::Linker(b) => a == b, EvalError::Linker(b) => a == b,
_ => false, _ => false,
} },
EvalError::ExitCode(a) => match other { EvalError::ExitCode(a) => match other {
EvalError::ExitCode(b) => a == b, EvalError::ExitCode(b) => a == b,
_ => false, _ => false,
} },
EvalError::RuntimeOutput(a) => match other { EvalError::RuntimeOutput(a) => match other {
EvalError::RuntimeOutput(b) => a == b, EvalError::RuntimeOutput(b) => a == b,
_ => false, _ => false,
} },
} }
} }
} }

View File

@@ -61,10 +61,10 @@
//! for evaluating all expressions. The [`eval`] module provides some //! for evaluating all expressions. The [`eval`] module provides some
//! utility support for this work. //! utility support for this work.
//! //!
pub mod syntax;
pub mod ir;
pub mod backend; pub mod backend;
pub mod eval; pub mod eval;
pub mod ir;
pub mod syntax;
/// Implementation module for the high-level compiler. /// Implementation module for the high-level compiler.
mod compiler; mod compiler;

View File

@@ -63,7 +63,7 @@ impl Location {
/// label (because that's where the error actually happened), but you'd /// label (because that's where the error actually happened), but you'd
/// probably want to make the first location the secondary label to help /// probably want to make the first location the secondary label to help
/// users find it. /// users find it.
pub fn secondary_label(&self) -> Label<usize> { pub fn secondary_label(&self) -> Label<usize> {
Label::secondary(self.file_idx, self.offset..self.offset) Label::secondary(self.file_idx, self.offset..self.offset)
} }