aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-20 19:11:06 +0100
committerMartin Fischer <martin@push-f.com>2021-11-20 19:19:29 +0100
commitce4cdcc21f86246474969051f6e0345f900086c3 (patch)
treead1881f6e859e4303d8e2bf630dc9759312695a5
parent9044eb941a310e4120dab93a43e6630efef72e4a (diff)
update README and error to reflect auto-boxing
-rw-r--r--README.md2
-rw-r--r--src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 77d28d1..1204661 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/src/lib.rs b/src/lib.rs
index 85718d0..17cea6d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)) => {