From 02b79e28f71ccbd1fce0e369469c92caedb38cd8 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 16 Aug 2020 02:23:38 -0700 Subject: [PATCH] Use 'unwrap' instead of 'expect' in testing guide. Resolves #1356. --- site/guide/8-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/guide/8-testing.md b/site/guide/8-testing.md index 52439926d9..671c9aab8b 100644 --- a/site/guide/8-testing.md +++ b/site/guide/8-testing.md @@ -24,7 +24,7 @@ instance. Usage is straightforward: ```rust # use rocket::local::blocking::Client; # let rocket = rocket::ignite(); - let client = Client::new(rocket).expect("valid rocket instance"); + let client = Client::new(rocket).unwrap(); # let _ = client; ```