diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-20 19:11:06 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-20 19:19:29 +0100 |
commit | ce4cdcc21f86246474969051f6e0345f900086c3 (patch) | |
tree | ad1881f6e859e4303d8e2bf630dc9759312695a5 | |
parent | 9044eb941a310e4120dab93a43e6630efef72e4a (diff) |
update README and error to reflect auto-boxing
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ let object = &client as &dyn DynClient; ``` 1. You add the `#[dynamize::dynamize]` attribute to your trait. -2. You specify an `Into<T>` bound for each associated type. +2. You specify a trait bound for each associated type. Dynamize defines a new trait for you, named after your trait but with the `Dyn` prefix, so e.g. `Client` becomes `DynClient` in our example. The new @@ -96,7 +96,7 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { Err((span, MethodParseError::UnconvertibleAssocType)) => { return abort!( span, - "associated type is either undefined or doesn't have an Into bound" + "associated type is either undefined or doesn't have a trait bound" ) } Err((span, MethodParseError::AssocTypeInInputs)) => { |