remove unnecessary type annotation

This commit is contained in:
ibraheemdev 2021-06-04 20:08:30 -04:00
parent 99acb96864
commit 409756368f
1 changed files with 2 additions and 2 deletions

View File

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