mirror of https://github.com/fafhrd91/actix-net
remove unnecessary type annotation
This commit is contained in:
parent
99acb96864
commit
409756368f
|
@ -118,8 +118,8 @@ impl<T: ResourcePath> Path<T> {
|
||||||
name: impl Into<Cow<'static, str>>,
|
name: impl Into<Cow<'static, str>>,
|
||||||
value: impl Into<Cow<'static, str>>,
|
value: impl Into<Cow<'static, str>>,
|
||||||
) {
|
) {
|
||||||
let value: Cow<'static, str> = value.into();
|
self.segments
|
||||||
self.segments.push((name.into(), PathItem::Static(value)));
|
.push((name.into(), PathItem::Static(value.into())));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check if there are any matched patterns
|
/// Check if there are any matched patterns
|
||||||
|
|
Loading…
Reference in New Issue