Fix 'rocket::local' docstring import spacing.

This commit is contained in:
Sergio Benitez 2021-03-04 21:52:28 -08:00
parent 58f365dac4
commit 67fef233a0
4 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ impl<'c> LocalRequest<'c> {
response
}
pub_request_impl!("# use rocket::local::asynchronous::Client;
pub_request_impl!("# use rocket::local::asynchronous::Client;\n\
use rocket::local::asynchronous::LocalRequest;" async await);
}

View File

@ -80,7 +80,7 @@ impl<'c> LocalResponse<'c> {
// otherwise, methods like `.headers()` could, in conjunction with
// particular crafted `Responder`s, potentially be used to obtain a
// reference to contents of `Request`. All methods, instead, return
// references bounded by `self`. This is easily verified by nothing
// references bounded by `self`. This is easily verified by noting
// that 1) `LocalResponse` fields are private, and 2) all `impl`s
// of `LocalResponse` aside from this method abstract the lifetime
// away as `'_`, ensuring it is not used for any output value.
@ -117,7 +117,7 @@ impl LocalResponse<'_> {
}
// Generates the public API methods, which call the private methods above.
pub_response_impl!("# use rocket::local::asynchronous::Client;
pub_response_impl!("# use rocket::local::asynchronous::Client;\n\
use rocket::local::asynchronous::LocalResponse;" async await);
}

View File

@ -62,7 +62,7 @@ impl<'c> LocalRequest<'c> {
LocalResponse { inner, client: self.client }
}
pub_request_impl!("# use rocket::local::blocking::Client;
pub_request_impl!("# use rocket::local::blocking::Client;\n\
use rocket::local::blocking::LocalRequest;");
}

View File

@ -73,7 +73,7 @@ impl LocalResponse<'_> {
}
// Generates the public API methods, which call the private methods above.
pub_response_impl!("# use rocket::local::blocking::Client;
pub_response_impl!("# use rocket::local::blocking::Client;\n\
use rocket::local::blocking::LocalResponse;");
}