Skip to content

Commit

Permalink
Cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
ummarikar committed Feb 6, 2020
1 parent 20a0bd2 commit 3c1c839
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/lib/compiler/ast_to_instrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
StorageT,
},
vm::{
objects::{BlockInfo, Class, Method, MethodBody, String_,},
objects::{BlockInfo, Class, Method, MethodBody, String_},
val::{Val, ValKind},
VM,
},
Expand Down Expand Up @@ -111,15 +111,18 @@ impl<'a> Compiler<'a> {
}

Ok(Class {
class: Some(Val::from_obj(vm, Class {
class: None,
name: String_::new(vm, name.to_string() + " class", true),
path: compiler.path.to_path_buf(),
supercls: Some(vm.cls_cls.clone()),
num_inst_vars: 0,
metaclass: true,
methods: HashMap::with_capacity(0),
})),
class: Some(Val::from_obj(
vm,
Class {
class: None,
name: String_::new(vm, name.to_string() + " class", true),
path: compiler.path.to_path_buf(),
supercls: Some(vm.cls_cls.clone()),
num_inst_vars: 0,
metaclass: true,
methods: HashMap::with_capacity(0),
},
)),
name: String_::new(vm, name, true),
path: compiler.path.to_path_buf(),
supercls,
Expand Down

0 comments on commit 3c1c839

Please sign in to comment.