Compare commits

..

2 Commits

Author SHA1 Message Date
cuddle-please
00524783d1 chore(release): 0.4.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-12-22 11:25:35 +00:00
2d48b523c3 fix: release action like main and pr
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-12-22 12:24:27 +01:00
2 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- remove ci
### Fixed
- release action like main and pr
- *(deps)* update rust crate chrono to v0.4.39
- *(deps)* update rust crate tracing to v0.1.41

View File

@ -63,8 +63,12 @@ impl CuddleCI {
self
}
pub fn with_release(&mut self, release: Box<dyn ReleaseAction + Send + Sync>) -> &mut Self {
self.release_action.push(release);
pub fn with_release<T>(&mut self, release: &T) -> &mut Self
where
T: ReleaseAction + Send + Sync + 'static,
T: ToOwned<Owned = T>,
{
self.release_action.push(Box::new(release.to_owned()));
self
}