Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -88,25 +88,15 @@ impl DaggerMiddleware for MoldInstall {
|
||||
}
|
||||
|
||||
pub trait MoldActionExt {
|
||||
fn with_mold(
|
||||
&mut self,
|
||||
architecture: Architecture,
|
||||
os: Os,
|
||||
version: impl Into<String>,
|
||||
) -> &mut Self {
|
||||
fn with_mold(&mut self, version: impl Into<String>) -> &mut Self {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl MoldActionExt for RustService {
|
||||
fn with_mold(
|
||||
&mut self,
|
||||
architecture: Architecture,
|
||||
os: Os,
|
||||
version: impl Into<String>,
|
||||
) -> &mut Self {
|
||||
fn with_mold(&mut self, version: impl Into<String>) -> &mut Self {
|
||||
self.with_stage(super::RustServiceStage::AfterDeps(
|
||||
Box::new(MoldInstall::new(architecture, os, version))
|
||||
Box::new(MoldInstall::new(self.get_arch(), self.get_os(), version))
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user