From ed6360247d335be5d9fb983bf5b7b68c72fe1bf4 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 14 Oct 2021 16:54:05 -0700 Subject: [PATCH] rustfmt on error.rs, lib.rs --- schala-lang/language/src/error.rs | 2 +- schala-lang/language/src/lib.rs | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/schala-lang/language/src/error.rs b/schala-lang/language/src/error.rs index fb80829..407499d 100644 --- a/schala-lang/language/src/error.rs +++ b/schala-lang/language/src/error.rs @@ -1,6 +1,6 @@ use crate::parsing::ParseError; use crate::schala::{SourceReference, Stage}; -use crate::tokenizing::{Token, TokenKind, Location}; +use crate::tokenizing::{Location, Token, TokenKind}; use crate::typechecking::TypeError; pub struct SchalaError { diff --git a/schala-lang/language/src/lib.rs b/schala-lang/language/src/lib.rs index 2b97e3d..b17a174 100644 --- a/schala-lang/language/src/lib.rs +++ b/schala-lang/language/src/lib.rs @@ -2,7 +2,7 @@ //#![feature(unrestricted_attribute_tokens)] #![feature(box_patterns, box_syntax)] -//! `schala-lang` is where the Schala programming language is actually implemented. +//! `schala-lang` is where the Schala programming language is actually implemented. //! It defines the `Schala` type, which contains the state for a Schala REPL, and implements //! `ProgrammingLanguageInterface` and the chain of compiler passes for it. @@ -11,9 +11,10 @@ extern crate schala_repl; extern crate schala_lang_codegen; extern crate derivative; - macro_rules! bx { - ($e:expr) => { Box::new($e) } + ($e:expr) => { + Box::new($e) + }; } #[macro_use] @@ -21,16 +22,16 @@ mod util; #[macro_use] mod typechecking; -mod tokenizing; mod ast; mod parsing; +mod tokenizing; #[macro_use] mod symbol_table; -mod scope_resolution; mod builtin; -mod reduced_ast; -mod eval; mod error; +mod eval; +mod reduced_ast; +mod scope_resolution; mod schala;