diff --git a/yazi-dds/src/body/delete.rs b/yazi-dds/src/body/delete.rs index 323a51ce..5397cacb 100644 --- a/yazi-dds/src/body/delete.rs +++ b/yazi-dds/src/body/delete.rs @@ -13,14 +13,12 @@ pub struct BodyDelete<'a> { impl<'a> BodyDelete<'a> { #[inline] - pub fn borrowed(targets: &'a Vec) -> Body<'a> { - Self { urls: Cow::Borrowed(targets) }.into() - } + pub fn borrowed(urls: &'a Vec) -> Body<'a> { Self { urls: Cow::Borrowed(urls) }.into() } } impl BodyDelete<'static> { #[inline] - pub fn owned(targets: Vec) -> Body<'static> { Self { urls: Cow::Owned(targets) }.into() } + pub fn owned(urls: Vec) -> Body<'static> { Self { urls: Cow::Owned(urls) }.into() } } impl<'a> From> for Body<'a> {