Radio link did not need Cow.
I was only using Cow because regular links can use templates which would require owned data. Radio links do not share this feature.
This commit is contained in:
parent
c70eb69ed6
commit
36327e92d7
@ -97,8 +97,8 @@ pub struct RadioTarget<'s> {
|
|||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub struct RadioLink<'s> {
|
pub struct RadioLink<'s> {
|
||||||
pub source: &'s str,
|
pub source: &'s str,
|
||||||
pub path: Cow<'s, str>,
|
pub path: &'s str,
|
||||||
pub raw_link: Cow<'s, str>,
|
pub raw_link: &'s str, // TODO: Is this always the same as path? If so, this could be a function instead of a field.
|
||||||
pub children: Vec<Object<'s>>,
|
pub children: Vec<Object<'s>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user