Use 'unwrap' instead of 'expect' in testing guide.

Resolves #1356.
This commit is contained in:
Sergio Benitez 2020-08-16 02:23:38 -07:00
parent 52320020bc
commit 02b79e28f7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
```