Skip to content

Commit 6752f67

Browse files
committed
cargo fmt
1 parent 943ded0 commit 6752f67

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

parser/src/lexer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,9 @@ where
687687

688688
match self.chr0 {
689689
Some('0'..='9') => return Some(self.lex_number()),
690-
Some('_') | Some('a'..='z') | Some('A'..='Z') => return Some(self.lex_identifier()),
690+
Some('_') | Some('a'..='z') | Some('A'..='Z') => {
691+
return Some(self.lex_identifier())
692+
}
691693
Some('#') => {
692694
self.lex_comment();
693695
continue;

vm/src/stdlib/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ pub type StdlibInitFunc = Box<dyn Fn(&PyContext) -> PyObjectRef>;
2525

2626
pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
2727
let mut modules = HashMap::new();
28-
modules.insert("ast".to_string(), Box::new(ast::mk_module) as StdlibInitFunc);
28+
modules.insert(
29+
"ast".to_string(),
30+
Box::new(ast::mk_module) as StdlibInitFunc,
31+
);
2932
modules.insert("dis".to_string(), Box::new(dis::mk_module));
3033
modules.insert("json".to_string(), Box::new(json::mk_module));
3134
modules.insert("keyword".to_string(), Box::new(keyword::mk_module));

wasm/lib/src/browser_module.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,6 @@ pub fn mk_module(ctx: &PyContext) -> PyObjectRef {
134134
}
135135

136136
pub fn setup_browser_module(vm: &mut VirtualMachine) {
137-
vm.stdlib_inits.insert(BROWSER_NAME.to_string(), Box::new(mk_module));
137+
vm.stdlib_inits
138+
.insert(BROWSER_NAME.to_string(), Box::new(mk_module));
138139
}

0 commit comments

Comments
 (0)