mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 03:42:59 +01:00
remove debug prints
This commit is contained in:
parent
059e2ad042
commit
a14f612382
@ -1,5 +1,9 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.1.5] - 2019-05-15
|
||||||
|
|
||||||
|
* Remove debug prints
|
||||||
|
|
||||||
## [0.1.4] - 2019-05-15
|
## [0.1.4] - 2019-05-15
|
||||||
|
|
||||||
* Fix checked resource match
|
* Fix checked resource match
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-router"
|
name = "actix-router"
|
||||||
version = "0.1.4"
|
version = "0.1.5"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Path router"
|
description = "Path router"
|
||||||
keywords = ["actix"]
|
keywords = ["actix"]
|
||||||
|
@ -55,11 +55,8 @@ impl<T, U> Router<T, U> {
|
|||||||
R: Resource<P>,
|
R: Resource<P>,
|
||||||
P: ResourcePath,
|
P: ResourcePath,
|
||||||
{
|
{
|
||||||
println!("router ==== {:?}", self.0.len());
|
|
||||||
for item in self.0.iter_mut() {
|
for item in self.0.iter_mut() {
|
||||||
println!("1");
|
|
||||||
if item.0.match_path_checked(resource, &check, &item.2) {
|
if item.0.match_path_checked(resource, &check, &item.2) {
|
||||||
println!("lll");
|
|
||||||
return Some((&mut item.1, ResourceId(item.0.id())));
|
return Some((&mut item.1, ResourceId(item.0.id())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user