diff --git a/crates/cuddle-ci/src/cli.rs b/crates/cuddle-ci/src/cli.rs index c0ac090..cabb523 100644 --- a/crates/cuddle-ci/src/cli.rs +++ b/crates/cuddle-ci/src/cli.rs @@ -63,8 +63,12 @@ impl CuddleCI { self } - pub fn with_release(&mut self, release: Box) -> &mut Self { - self.release_action.push(release); + pub fn with_release(&mut self, release: &T) -> &mut Self + where + T: ReleaseAction + Send + Sync + 'static, + T: ToOwned, + { + self.release_action.push(Box::new(release.to_owned())); self }