From c2c083cb65f10fa7e45c39db2d34ae28952e97ca Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 1 Oct 2024 13:19:30 -0400 Subject: [PATCH] Removing code style around futures; not sure what this refers to --- src/ch17-03-more-futures.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch17-03-more-futures.md b/src/ch17-03-more-futures.md index 3d3c83fcd..b799aa30d 100644 --- a/src/ch17-03-more-futures.md +++ b/src/ch17-03-more-futures.md @@ -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, let’s 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: