fixed id type
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m7s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 2m56s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m40s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m11s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s

This commit is contained in:
2025-10-01 19:00:34 +02:00
parent 49f1af392d
commit 4681e0c694
4 changed files with 6 additions and 6 deletions

View File

@@ -34,8 +34,8 @@ pub async fn get_available_container(docker: &Docker) -> Vec<DockerContainer> {
container.id.as_ref()?; // Skip if no ID
let id = container.id?;
let short_string_id = if id.len() > 12 { &id[..12] } else { &id };
let short_id: u32 = short_string_id.trim().parse().unwrap();
let short_id = if id.len() > 12 { &id[..12] } else { &id };
//let short_id: u32 = short_string_id.trim().parse().unwrap();
let name = container.names
.and_then(|names| names.into_iter().next())
@@ -59,7 +59,7 @@ pub async fn get_available_container(docker: &Docker) -> Vec<DockerContainer> {
println!(" - ID: {}, Image: {:?}, Name: {}", short_id, container.image, name);
Some(DockerContainer {
ID: short_id,
ID: short_id.to_string(),
image,
Name: name,
Status: status,