From 8cbf604fe239c019bb29915e0372b84339e865d3 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 7 May 2021 19:00:18 +0100 Subject: [PATCH] fix doc test --- actix-http/src/response_builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actix-http/src/response_builder.rs b/actix-http/src/response_builder.rs index 63ba37fd9..f4764ff5d 100644 --- a/actix-http/src/response_builder.rs +++ b/actix-http/src/response_builder.rs @@ -38,10 +38,11 @@ use crate::{ /// .body("1234"); /// /// assert_eq!(res.status(), StatusCode::OK); -/// assert_eq!(body::to_bytes(res.into_body()).await.unwrap(), &b"1234"[..]); /// /// assert!(res.headers().contains_key("server")); /// assert_eq!(res.headers().get_all("set-cookie").count(), 2); +/// +/// assert_eq!(body::to_bytes(res.into_body()).await.unwrap(), &b"1234"[..]); /// # }) /// ``` pub struct ResponseBuilder {