Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c0fe864923
commit
5fb1399f0c
@ -43,25 +43,21 @@ impl CuddleCI {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn with_pull_request<T>(&mut self, pr: impl AsRef<T>) -> &mut Self
|
||||
pub fn with_pull_request<T>(&mut self, pr: &T) -> &mut Self
|
||||
where
|
||||
T: PullRequestAction + ToOwned + Send + Sync + 'static,
|
||||
T: ToOwned<Owned = T>,
|
||||
{
|
||||
let pr = pr.as_ref();
|
||||
|
||||
self.pr_action.push(Box::new(pr.to_owned()));
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_main<T>(&mut self, main: impl AsRef<T>) -> &mut Self
|
||||
pub fn with_main<T>(&mut self, main: &T) -> &mut Self
|
||||
where
|
||||
T: MainAction + Send + Sync + 'static,
|
||||
T: ToOwned<Owned = T>,
|
||||
{
|
||||
let main = main.as_ref();
|
||||
|
||||
self.main_action.push(Box::new(main.to_owned()));
|
||||
|
||||
self
|
||||
|
Loading…
Reference in New Issue
Block a user