mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
remove debug print
This commit is contained in:
parent
593a66324f
commit
dcb561584d
@ -283,9 +283,9 @@ impl<S> HttpRequest<S> {
|
||||
/// Generate url for named resource
|
||||
///
|
||||
/// ```rust
|
||||
/// # extern crate actix_web;
|
||||
/// # use actix_web::{App, HttpRequest, HttpResponse, http};
|
||||
/// #
|
||||
/// //#### # extern crate actix_web;
|
||||
/// //#### # use actix_web::{App, HttpRequest, HttpResponse, http};
|
||||
/// //#### #
|
||||
/// fn index(req: HttpRequest) -> HttpResponse {
|
||||
/// let url = req.url_for("foo", &["1", "2", "3"]); // <- generate url for "foo" resource
|
||||
/// HttpResponse::Ok().into()
|
||||
@ -311,7 +311,6 @@ impl<S> HttpRequest<S> {
|
||||
Err(UrlGenerationError::RouterNotAvailable)
|
||||
} else {
|
||||
let path = self.router().unwrap().resource_path(name, elements)?;
|
||||
println!("==== {:?}", path);
|
||||
if path.starts_with('/') {
|
||||
let conn = self.connection_info();
|
||||
Ok(Url::parse(&format!(
|
||||
|
Loading…
Reference in New Issue
Block a user