feat(elements): into_owned function
This commit is contained in:
parent
9bc260627b
commit
f2d0a1dd2d
25 changed files with 475 additions and 131 deletions
|
|
@ -35,6 +35,12 @@ impl Cookie<'_> {
|
|||
},
|
||||
))
|
||||
}
|
||||
|
||||
pub fn into_owned(self) -> Cookie<'static> {
|
||||
Cookie {
|
||||
value: self.value.into_owned().into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue