fix changelog

This commit is contained in:
Rob Ede 2021-07-19 21:07:47 +01:00
parent 18f8854422
commit 2873fc00aa
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 6 additions and 5 deletions

View File

@ -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]

View File

@ -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();