fix: remove unused imports

This commit is contained in:
Kasper Juul Hermansen 2023-03-13 20:47:23 +01:00
parent cbdac7fef5
commit 01f807b150
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -1,6 +1,4 @@
use dagger_sdk::{ use dagger_sdk::{QueryContainerOpts, QueryContainerOptsBuilder};
ContainerBuildOptsBuilder, HostDirectoryOpts, QueryContainerOpts, QueryContainerOptsBuilder,
};
static PLATFORMS: [&str; 2] = ["linux/arm64", "linux/x86_64"]; static PLATFORMS: [&str; 2] = ["linux/arm64", "linux/x86_64"];
@ -8,14 +6,6 @@ static PLATFORMS: [&str; 2] = ["linux/arm64", "linux/x86_64"];
async fn test_issue_30_alt() -> eyre::Result<()> { async fn test_issue_30_alt() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?; let client = dagger_sdk::connect().await?;
let context = client.host().directory_opts(
".",
HostDirectoryOpts {
exclude: Some(vec!["target", "client/node_modules", "client/build"]),
include: None,
},
);
for platform in PLATFORMS { for platform in PLATFORMS {
let ref_ = client let ref_ = client
.container_opts(QueryContainerOpts { .container_opts(QueryContainerOpts {
@ -36,14 +26,6 @@ async fn test_issue_30_alt() -> eyre::Result<()> {
async fn test_issue_30() -> eyre::Result<()> { async fn test_issue_30() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?; let client = dagger_sdk::connect().await?;
let context = client.host().directory_opts(
".",
HostDirectoryOpts {
exclude: Some(vec!["target", "client/node_modules", "client/build"]),
include: None,
},
);
for platform in PLATFORMS { for platform in PLATFORMS {
let ref_ = client let ref_ = client
.container_opts( .container_opts(