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 { 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 {