You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: uri-percent-encoding-issue-808.rs
    path of file: ./repos/Rocket/core/lib/tests
    
    the code of the file until where you have to start completion: #[macro_use] extern crate rocket;

use rocket::{Rocket, Build};
use rocket::response::Redirect;

const NAME: &str = "John[]|\\%@^";

#[get("/hello/<name>")]
fn hello(name: String) -> String {
    format!("Hello, {}!", name)
}

#[get("/raw")]
fn raw_redirect() -> Redirect {
    Redirect::to(uri!(hello(NAME)))
}

#[get("/uri")]
fn uri_redirect() -> Redi
    
    fn uri_percent_encoding_redirect() {
        let expected_location = vec!["/hello/John[]%7C%5C%25@%5E"];
        let client = Client::debug(rocket()).unwrap();

        let response = client.get("/raw").dispatch();
        let location: Vec<_> = response.headers().get("location").collect();
        assert_eq!(response.status(), Status::SeeOther);
        assert_eq!(&location, &expected_location);

        let response = client.get("/uri").dispatch();
        let location: Vec<_> = response.headers().get("location").collect();
        assert_eq!(response.status(), Status::SeeOther);
        assert_eq!(&location, &expected_location);
    }