mirror of
https://github.com/actix/actix-web.git
synced 2024-12-19 14:49:01 +00:00
remove debug print
This commit is contained in:
parent
08e7374eee
commit
a9c6c57a67
1 changed files with 3 additions and 4 deletions
|
@ -283,9 +283,9 @@ impl<S> HttpRequest<S> {
|
||||||
/// Generate url for named resource
|
/// Generate url for named resource
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// //#### # extern crate actix_web;
|
||||||
/// # use actix_web::{App, HttpRequest, HttpResponse, http};
|
/// //#### # use actix_web::{App, HttpRequest, HttpResponse, http};
|
||||||
/// #
|
/// //#### #
|
||||||
/// fn index(req: HttpRequest) -> HttpResponse {
|
/// fn index(req: HttpRequest) -> HttpResponse {
|
||||||
/// let url = req.url_for("foo", &["1", "2", "3"]); // <- generate url for "foo" resource
|
/// let url = req.url_for("foo", &["1", "2", "3"]); // <- generate url for "foo" resource
|
||||||
/// HttpResponse::Ok().into()
|
/// HttpResponse::Ok().into()
|
||||||
|
@ -311,7 +311,6 @@ impl<S> HttpRequest<S> {
|
||||||
Err(UrlGenerationError::RouterNotAvailable)
|
Err(UrlGenerationError::RouterNotAvailable)
|
||||||
} else {
|
} else {
|
||||||
let path = self.router().unwrap().resource_path(name, elements)?;
|
let path = self.router().unwrap().resource_path(name, elements)?;
|
||||||
println!("==== {:?}", path);
|
|
||||||
if path.starts_with('/') {
|
if path.starts_with('/') {
|
||||||
let conn = self.connection_info();
|
let conn = self.connection_info();
|
||||||
Ok(Url::parse(&format!(
|
Ok(Url::parse(&format!(
|
||||||
|
|
Loading…
Reference in a new issue