feat: without new async

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-12-29 17:19:22 +01:00
parent 10ef2294d2
commit 124aa93b98
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -22,15 +22,15 @@ pub struct RustLib {
}
impl RustLib {
pub async fn new(value: dagger_sdk::Query) -> eyre::Result<Self> {
Ok(Self {
pub fn new(value: dagger_sdk::Query) -> Self {
Self {
client: value,
source: None,
crates: Vec::new(),
arch: None,
os: None,
base_image: None,
})
}
}
pub fn with_source(&mut self, path: impl Into<PathBuf>) -> &mut Self {