Skip to content

Commit 1dcfe90

Browse files
rustfmtradrow
authored andcommitted
style: Run cargo fmt globally
1 parent bb6978f commit 1dcfe90

35 files changed

+3420
-2706
lines changed

aesophia_ast/src/ast.rs

Lines changed: 138 additions & 111 deletions
Large diffs are not rendered by default.

aesophia_ast/src/cst.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use tree_sitter_aesophia;
21
use std::collections::HashMap;
32

3+
use tree_sitter_aesophia;
4+
45
/// Alias for tree-sitter node
56
pub type TsNode<'a> = tree_sitter::Node<'a>;
67

@@ -53,7 +54,6 @@ pub fn load_subtypes() -> SubtypeMap {
5354
subtypes
5455
}
5556

56-
5757
pub fn load_lang() -> tree_sitter::Parser {
5858
let mut parser = tree_sitter::Parser::new();
5959
parser
@@ -64,12 +64,14 @@ pub fn load_lang() -> tree_sitter::Parser {
6464
}
6565

6666
pub fn parse_str(src: &str) -> Option<tree_sitter::Tree> {
67-
log::debug!("PARSING CST:\n================================================================================\n{}================================================================================\n", src);
67+
log::debug!(
68+
"PARSING CST:\n================================================================================\n{}================================================================================\n",
69+
src
70+
);
6871
let mut parser = load_lang();
6972
parser.parse(src, None)
7073
}
7174

72-
7375
pub fn parse_file(filename: &str) -> (String, Option<tree_sitter::Tree>) {
7476
match std::fs::read_to_string(filename) {
7577
Err(e) => panic!("Failed to load file: {}", e),

0 commit comments

Comments
 (0)