Skip to content

Commit

Permalink
Fix test and move examples to proper place
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Dec 14, 2023
1 parent 7312103 commit adcef02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions rust/tests/chatroom.rs → rust/examples/chatroom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,5 @@ pub mod dependency_2 {
}
}
}

fn main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,5 @@ mod children {
}
}
}

fn main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ impl TypedContract for Contract {
unimplemented!()
}
}

fn main() {}
4 changes: 1 addition & 3 deletions rust/src/contract_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1307,9 +1307,7 @@ impl TryInto<Vec<u8>> for WrappedContract {

impl Display for WrappedContract {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Contract(")?;
self.key.fmt(f)?;
write!(f, ")")
self.key.fmt(f)
}
}

Expand Down

0 comments on commit adcef02

Please sign in to comment.