Radio link did not need Cow.
All checks were successful
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded

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:
Tom Alexander 2023-10-07 01:26:01 -04:00
parent c70eb69ed6
commit 36327e92d7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -97,8 +97,8 @@ pub struct RadioTarget<'s> {
#[derive(Debug, PartialEq)]
pub struct RadioLink<'s> {
pub source: &'s str,
pub path: Cow<'s, str>,
pub raw_link: Cow<'s, str>,
pub path: &'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>>,
}