From 201a2cb2a282e9ffa0e8326f425bad88a5f4f47a Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 24 Aug 2017 20:47:24 +0200 Subject: Simplify Rocket test slightly --- testing/tests/iron.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/tests/iron.rs b/testing/tests/iron.rs index 51c7b8d..6f8868f 100644 --- a/testing/tests/iron.rs +++ b/testing/tests/iron.rs @@ -16,5 +16,5 @@ fn test_iron() { let rsp = Response::with((status::Ok, HelloTemplate { name: "world" })); let mut buf = Vec::new(); let _ = rsp.body.unwrap().write_body(&mut buf); - assert_eq!(buf, "Hello, world!".as_bytes()); + assert_eq!(buf, b"Hello, world!"); } -- cgit