mirror of https://github.com/fafhrd91/actix-net
fix changelog
This commit is contained in:
parent
18f8854422
commit
2873fc00aa
|
@ -11,8 +11,9 @@
|
|||
* Rename `ResourceDef::{resource_path => resource_path_from_iter}`. [#371]
|
||||
* `ResourceDef::resource_path_from_iter` now takes an `IntoIterator`. [#373]
|
||||
* Rename `ResourceDef::{resource_path_named => resource_path_from_map}`. [#371]
|
||||
* Rename `ResourceDef::{match_path => is_path_match}`. [#373]
|
||||
* Rename `ResourceDef::{match_path_checked => is_path_match_fn}`. [#373]
|
||||
* Rename `ResourceDef::{is_prefix_match => find_match}`. [#373]
|
||||
* Rename `ResourceDef::{match_path => capture_match_info}`. [#373]
|
||||
* Rename `ResourceDef::{match_path_checked => capture_match_info_fn}`. [#373]
|
||||
* Remove `ResourceDef::name_mut` and introduce `ResourceDef::set_name`. [#373]
|
||||
* Rename `Router::{*_checked => *_fn}`. [#373]
|
||||
* Return type of `ResourceDef::name` is now `Option<&str>`. [#373]
|
||||
|
|
|
@ -842,10 +842,10 @@ impl ResourceDef {
|
|||
/// assert!(resource.resource_path_from_iter(&mut s, &["123", "my-post"]));
|
||||
/// assert_eq!(s, "/user/123/post/my-post");
|
||||
/// ```
|
||||
pub fn resource_path_from_iter<U>(&self, path: &mut String, values: U) -> bool
|
||||
pub fn resource_path_from_iter<I>(&self, path: &mut String, values: I) -> bool
|
||||
where
|
||||
U: IntoIterator,
|
||||
U::Item: AsRef<str>,
|
||||
I: IntoIterator,
|
||||
I::Item: AsRef<str>,
|
||||
{
|
||||
profile_method!(resource_path_from_iter);
|
||||
let mut iter = values.into_iter();
|
||||
|
|
Loading…
Reference in New Issue