feat: without new async
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
10ef2294d2
commit
124aa93b98
@ -22,15 +22,15 @@ pub struct RustLib {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl RustLib {
|
impl RustLib {
|
||||||
pub async fn new(value: dagger_sdk::Query) -> eyre::Result<Self> {
|
pub fn new(value: dagger_sdk::Query) -> Self {
|
||||||
Ok(Self {
|
Self {
|
||||||
client: value,
|
client: value,
|
||||||
source: None,
|
source: None,
|
||||||
crates: Vec::new(),
|
crates: Vec::new(),
|
||||||
arch: None,
|
arch: None,
|
||||||
os: None,
|
os: None,
|
||||||
base_image: None,
|
base_image: None,
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_source(&mut self, path: impl Into<PathBuf>) -> &mut Self {
|
pub fn with_source(&mut self, path: impl Into<PathBuf>) -> &mut Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user