From b779499d180bcf13dae0221ad1d40a3485a4dc18 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 9 May 2022 02:38:36 +0100 Subject: [PATCH] refactor: Remove 'Clone' from #derive[] --- src/links.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/links.rs b/src/links.rs index 50d3821..77ff059 100644 --- a/src/links.rs +++ b/src/links.rs @@ -69,7 +69,7 @@ lazy_static! { .unwrap(); } -#[derive(PartialEq, Debug, Clone)] +#[derive(PartialEq, Debug)] pub(crate) struct Link<'a> { pub(crate) start_index: usize, pub(crate) end_index: usize, @@ -167,7 +167,7 @@ impl<'a> Link<'a> { } } -#[derive(PartialEq, Debug, Clone)] +#[derive(PartialEq, Debug)] pub(crate) enum LinkType { Escaped, Template(PathBuf), @@ -207,7 +207,7 @@ pub(crate) fn extract_template_links(contents: &str) -> LinkIter<'_> { LinkIter(TEMPLATE.captures_iter(contents)) } -#[derive(PartialEq, Debug, Clone)] +#[derive(PartialEq, Debug)] struct Args<'a> { start_index: usize, end_index: usize, @@ -270,7 +270,7 @@ impl<'a> Args<'a> { } } -#[derive(PartialEq, Debug, Clone)] +#[derive(PartialEq, Debug)] enum ArgsType<'a> { Escaped, Plain(&'a str),