diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | ui-tests/Cargo.toml | 5 |
3 files changed, 5 insertions, 8 deletions
@@ -1,6 +1,6 @@ [package] name = "dynamize" -version = "0.3.0" +version = "0.3.1" description = "proc macro to make traits with associated types object-safe" authors = ["Martin Fischer <martin@push-f.com>"] license = "MIT" @@ -94,7 +94,7 @@ Dynamize also understands if you wrap associated types in the following types: Note that since these are resolved recursively you can actually nest these arbitrarily so e.g. the following also just works: -```rs +```rust ignore fn example(&self) -> Result<Option<Self::Item>, Self::Error>; ``` @@ -103,7 +103,7 @@ fn example(&self) -> Result<Option<Self::Item>, Self::Error>; In order to be object-safe methods must not have generics, so dynamize simply moves them to the trait definition: -```rs +```rust trait Gen { fn foobar<A>(&self, a: A) -> A; } @@ -111,7 +111,7 @@ trait Gen { becomes -```rs +```rust trait DynGen<A> { fn foobar(&self, a: A) -> A; } diff --git a/ui-tests/Cargo.toml b/ui-tests/Cargo.toml index 5b30a66..e3ea381 100644 --- a/ui-tests/Cargo.toml +++ b/ui-tests/Cargo.toml @@ -4,8 +4,5 @@ version = "0.0.0" edition = "2021" publish = false -[patch.crates-io] -dynamize = { path = ".." } - [dependencies] -dynamize = "0.2.0" +dynamize = { path = ".." } |