Skip to content

Commit

Permalink
update paths, fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kpob committed Nov 24, 2023
1 parent 50c5d52 commit df7c391
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion odra-macros/src/ast/module_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ mod test {
mod __counter_pack_module {
use super::*;

impl odra::module::Module for CounterPack {
impl odra::Module for CounterPack {
fn new(env: Rc<odra::ContractEnv>) -> Self {
let counter0 = ModuleWrapper::new(Rc::clone(&env), 0u8);
let counter1 = ModuleWrapper::new(Rc::clone(&env), 1u8);
Expand Down
1 change: 0 additions & 1 deletion odra-macros/src/utils/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub fn parse_bytes(data_ident: &syn::Ident) -> syn::Expr {

pub fn new_type(ty: &syn::Type, env_ident: &syn::Ident, idx: u8) -> syn::Expr {
let rc = rc_clone(env_ident);
dbg!(quote::quote!(#ty::new(#rc, #idx)).to_string());
parse_quote!(#ty::new(#rc, #idx))
}

Expand Down
2 changes: 1 addition & 1 deletion odra-macros/src/utils/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn module_wrapper() -> syn::Type {
}

pub fn module() -> syn::Type {
parse_quote!(odra::module::Module)
parse_quote!(odra::Module)
}

pub fn variable() -> syn::Type {
Expand Down

0 comments on commit df7c391

Please sign in to comment.