Use clearer imports in 'requests' guide.

This commit is contained in:
Maxime Guerreiro 2020-07-12 15:19:58 +02:00 committed by Sergio Benitez
parent 79886c1a8e
commit 9895eb736d
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ not just the world, we can declare a route like so:
# #[macro_use] extern crate rocket;
# fn main() {}
# use rocket::http::RawStr;
use rocket::http::RawStr;
#[get("/hello/<name>")]
fn hello(name: &RawStr) -> String {
@ -536,7 +536,7 @@ following three routes, each leading to an administrative control panel at
# type AdminUser = rocket::http::Method;
# type User = rocket::http::Method;
use rocket::response::{Flash, Redirect};
use rocket::response::Redirect;
#[get("/login")]
fn login() -> Template { /* .. */ }