aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-21 20:37:16 +0100
committerMartin Fischer <martin@push-f.com>2021-11-21 20:37:42 +0100
commit29d0acb48a03a08eff63d0c40c2e6961f250cb89 (patch)
tree8df9113339d124d1b605d2e26e7922ba4ac76612
parentf897ac6b6027693fe197ee7b6ce9f7fe428e8440 (diff)
fix code highlighting & ui-tests, bump to 0.3.1v0.3.1
-rw-r--r--Cargo.toml2
-rw-r--r--README.md6
-rw-r--r--ui-tests/Cargo.toml5
3 files changed, 5 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1e4c207..d6fec25 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"
diff --git a/README.md b/README.md
index 58abda6..4a383fe 100644
--- a/README.md
+++ b/README.md
@@ -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 = ".." }