Browse Source

chore: fix formatting

modules
Garrit Franke 3 years ago
parent
commit
40976e9dd9
  1. 6
      src/parser/node_type.rs
  2. 1
      src/parser/rules.rs

6
src/parser/node_type.rs

@ -1,3 +1,6 @@
use crate::lexer::*;
use core::convert::TryFrom;
use std::collections::HashMap;
/**
* Copyright 2020 Garrit Franke
*
@ -14,9 +17,6 @@
* limitations under the License.
*/
use std::collections::HashSet;
use crate::lexer::*;
use core::convert::TryFrom;
use std::collections::HashMap;
/// Table that contains all symbol and its types
pub type SymbolTable = HashMap<String, Option<Type>>;

1
src/parser/rules.rs

@ -164,7 +164,6 @@ impl Parser {
};
Ok(import_path)
}
fn parse_type(&mut self) -> Result<Type, String> {

Loading…
Cancel
Save