mirror of https://github.com/rwf2/Rocket.git
Fix 'rocket::local' docstring import spacing.
This commit is contained in:
parent
58f365dac4
commit
67fef233a0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;");
|
||||
}
|
||||
|
||||
|
|
|
@ -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;");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue