mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
bbb8c3c036
commit
ed91358b0e
1 changed files with 2 additions and 4 deletions
|
|
@ -13,14 +13,12 @@ pub struct BodyDelete<'a> {
|
||||||
|
|
||||||
impl<'a> BodyDelete<'a> {
|
impl<'a> BodyDelete<'a> {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn borrowed(targets: &'a Vec<Url>) -> Body<'a> {
|
pub fn borrowed(urls: &'a Vec<Url>) -> Body<'a> { Self { urls: Cow::Borrowed(urls) }.into() }
|
||||||
Self { urls: Cow::Borrowed(targets) }.into()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BodyDelete<'static> {
|
impl BodyDelete<'static> {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn owned(targets: Vec<Url>) -> Body<'static> { Self { urls: Cow::Owned(targets) }.into() }
|
pub fn owned(urls: Vec<Url>) -> Body<'static> { Self { urls: Cow::Owned(urls) }.into() }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> From<BodyDelete<'a>> for Body<'a> {
|
impl<'a> From<BodyDelete<'a>> for Body<'a> {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue