Skip to content

Commit 33a22c5

Browse files
committed
update bollard to 0.21
1 parent 5632380 commit 33a22c5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

testcontainers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[dependencies]
1919
async-trait = { version = "0.1" }
20-
bollard = { version = "0.20.0", features = ["buildkit_providerless", "time"] }
20+
bollard = { version = "0.21.0", features = ["buildkit_providerless", "time"] }
2121
http = "1.1"
2222
bytes = "1.6.0"
2323
conquer-once = { version = "0.4", optional = true }

testcontainers/src/runners/async_runner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,9 @@ where
419419
impl From<&Mount> for bollard::models::Mount {
420420
fn from(mount: &Mount) -> Self {
421421
let mount_type = match mount.mount_type() {
422-
MountType::Bind => bollard::models::MountTypeEnum::BIND,
423-
MountType::Volume => bollard::models::MountTypeEnum::VOLUME,
424-
MountType::Tmpfs => bollard::models::MountTypeEnum::TMPFS,
422+
MountType::Bind => bollard::models::MountType::BIND,
423+
MountType::Volume => bollard::models::MountType::VOLUME,
424+
MountType::Tmpfs => bollard::models::MountType::TMPFS,
425425
};
426426

427427
let is_read_only = matches!(mount.access_mode(), AccessMode::ReadOnly);

0 commit comments

Comments
 (0)