Use renamed unsafe_get and concat_vec methods.
Changed calls to unsafe_get to use get_unchecked and calls to concat_vec to use concat to avoid deprecation lints.
This commit is contained in:
committed by
Sean McArthur
parent
6ecb39e910
commit
5dd4529165
@@ -18,7 +18,7 @@ impl Header for CacheControl {
|
||||
let directives = raw.iter()
|
||||
.filter_map(|line| from_one_comma_delimited(line[]))
|
||||
.collect::<Vec<Vec<CacheDirective>>>()
|
||||
.concat_vec();
|
||||
.concat();
|
||||
if directives.len() > 0 {
|
||||
Some(CacheControl(directives))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user