Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kotauskas committed Feb 21, 2021
1 parent 181e01f commit d2dd4b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Kotauskas <[email protected]>"]
edition = "2018"
name = "thin_trait_object"
version = "1.0.0"
version = "1.0.1"

documentation = "https://docs.rs/thin_trait_object/*/thin_trait_object"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ unsafe {
eater_of_foo(foo.into_raw() as *mut c_void);
}
// Acquire ownership of a different implementation from the C side.
let foo = unsafe { BoxedFoo::from_raw(creator_of_foo()) };
let foo = unsafe { BoxedFoo::from_raw(creator_of_foo() as *mut ()) };
foo.say_hello();
```
The C side would do:
Expand Down Expand Up @@ -219,7 +219,7 @@ trait B: A {
self.a(); // Redirect to the method from the A trait implementation
}
}
impl A for BoxedB {
impl A for BoxedB<'_> {
fn a(&self) {
// Redirect to the hidden thunk, which will use the actual implementation of the method
self._thunk_a();
Expand Down

0 comments on commit d2dd4b3

Please sign in to comment.