From eda5a1e35185ee5c062111fb679bd7ae1ec7e620 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Thu, 30 Mar 2023 14:52:59 +0200 Subject: [PATCH] add Clone to repodata --- crates/rattler_conda_types/src/repo_data/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rattler_conda_types/src/repo_data/mod.rs b/crates/rattler_conda_types/src/repo_data/mod.rs index bb9f967fe..74d4d61e2 100644 --- a/crates/rattler_conda_types/src/repo_data/mod.rs +++ b/crates/rattler_conda_types/src/repo_data/mod.rs @@ -20,7 +20,7 @@ use crate::{Channel, NoArchType, RepoDataRecord, Version}; /// [`RepoData`] is an index of package binaries available on in a subdirectory of a Conda channel. // Note: we cannot use the sorted macro here, because the `packages` and `conda_packages` fields are // serialized in a special way. Therefore we do it manually. -#[derive(Debug, Deserialize, Serialize, Eq, PartialEq)] +#[derive(Debug, Deserialize, Serialize, Eq, PartialEq, Clone)] pub struct RepoData { /// The channel information contained in the repodata.json file pub info: Option, @@ -48,7 +48,7 @@ pub struct RepoData { } /// Information about subdirectory of channel in the Conda [`RepoData`] -#[derive(Debug, Deserialize, Serialize, Eq, PartialEq)] +#[derive(Debug, Deserialize, Serialize, Eq, PartialEq, Clone)] pub struct ChannelInfo { /// The channel's subdirectory pub subdir: String,