Skip to content

Commit bdd08d2

Browse files
committed
Missed a Box<dyn ...>
1 parent 4553f79 commit bdd08d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/next_reuse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<C: HttpClient> Middleware<C> for Doubler {
4747

4848
// The need for Ok with turbofish is explained here
4949
// https://rust-lang.github.io/async-book/07_workarounds/03_err_in_async_blocks.html
50-
fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
50+
fn main() -> Result<(), BoxError> {
5151
femme::start(log::LevelFilter::Info)?;
5252
task::block_on(async {
5353
let mut res = surf::get("https://httpbin.org/get")

0 commit comments

Comments
 (0)