Removing code style around futures; not sure what this refers to

This commit is contained in:
Carol (Nichols || Goulding)
2024-10-01 13:19:30 -04:00
parent f01527c271
commit c2c083cb65

View File

@@ -112,8 +112,8 @@ Unfortunately, this still does not compile. In fact, we have the same basic
error we did before, but we get one for both the second and third `Box::new`
calls, and we also get new errors referring to the `Unpin` trait. We will come
back to the `Unpin` errors in a moment. First, lets fix the type errors on the
`Box::new` calls, by explicitly providing the type of `futures` as a trait
object (Listing 17-17).
`Box::new` calls, by explicitly annotating the type of the futures as a trait
object:
<Listing number="17-17" caption="Fixing the rest of the type mismatch errors by using an explicit type declaration" file-name="src/main.rs">