diff --git a/CHANGELOG.md b/CHANGELOG.md index 04fd5201..8a1b7589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `ExecDProgramOutputKey`, `ProcessType`, `LayerName`, `BuildpackId` and `StackId` now implement `Ord` and `PartialOrd`. ([#658](https://github.com/heroku/libcnb.rs/pull/658)) - Add `generic::GenericMetadata` as a generic metadata type. Also makes it the default for `BuildpackDescriptor`, `SingleBuildpackDescriptor`, `MetaBuildpackDescriptor` and `LayerContentMetadata`. ([#664](https://github.com/heroku/libcnb.rs/pull/664)) - `libcnb`: - - `LayerTypes` now implements `Clone`. ([#670](https://github.com/heroku/libcnb.rs/pull/670)). + - Struct `LayerTypes` now implements `Copy` and `Clone`. This allows injection of layer types into the struct implementing the `Layer` trait ([#670](https://github.com/heroku/libcnb.rs/pull/670)). ### Changed diff --git a/libcnb-data/src/layer_content_metadata.rs b/libcnb-data/src/layer_content_metadata.rs index 47519be0..dadec05b 100644 --- a/libcnb-data/src/layer_content_metadata.rs +++ b/libcnb-data/src/layer_content_metadata.rs @@ -21,7 +21,7 @@ impl PartialEq for LayerContentMetadata { /// Used to specify layer availability based /// on buildpack phase. -#[derive(Debug, Default, Deserialize, Serialize, Eq, PartialEq, Clone)] +#[derive(Debug, Default, Deserialize, Serialize, Eq, PartialEq, Copy, Clone)] #[serde(deny_unknown_fields)] pub struct LayerTypes { /// Whether the layer is intended for launch.