Skip to content

Commit

Permalink
refactor: add clone to params (#3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored Feb 14, 2025
1 parent 70ab39d commit a43ce55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/pixi_build_types/src/channel_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};
use url::Url;

/// Information about the channel configuration to use to resolve dependencies.
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ChannelConfiguration {
/// The default base URL to use for channels when the channel is not
Expand Down
8 changes: 4 additions & 4 deletions crates/pixi_build_types/src/procedures/conda_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{ChannelConfiguration, PlatformAndVirtualPackages};
pub const METHOD_NAME: &str = "conda/build";

/// Parameters for the `conda/build` request.
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CondaBuildParams {
/// The build platform is always the current platform, but the virtual
Expand Down Expand Up @@ -50,7 +50,7 @@ pub struct CondaBuildParams {
}

/// Identifier of an output.
#[derive(Default, Debug, Serialize, Deserialize)]
#[derive(Default, Debug, Serialize, Deserialize, Clone)]
pub struct CondaOutputIdentifier {
pub name: Option<String>,
pub version: Option<String>,
Expand All @@ -59,13 +59,13 @@ pub struct CondaOutputIdentifier {
}

/// Contains the result of the `conda/build` request.
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct CondaBuildResult {
/// The packages that were built.
pub packages: Vec<CondaBuiltPackage>,
}

#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct CondaBuiltPackage {
/// The location on disk where the built package is located.
pub output_file: PathBuf,
Expand Down
4 changes: 2 additions & 2 deletions crates/pixi_build_types/src/procedures/conda_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{ChannelConfiguration, CondaPackageMetadata, PlatformAndVirtualPackag
pub const METHOD_NAME: &str = "conda/getMetadata";

/// Parameters for the `conda/getMetadata` request.
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CondaMetadataParams {
/// The platform that will run the build.
Expand Down Expand Up @@ -39,7 +39,7 @@ pub struct CondaMetadataParams {
}

/// Contains the result of the `conda/getMetadata` request.
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CondaMetadataResult {
/// Metadata of all the packages that can be built.
Expand Down

0 comments on commit a43ce55

Please sign in to comment.