diff --git a/Cargo.toml b/Cargo.toml index ed71efa..a4f62b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,8 @@ description = "A simple tui to view & control docker containers" repository = "https://github.com/mrjackwills/oxker" homepage = "https://github.com/mrjackwills/oxker" license = "MIT" +# This is stuck to whatever version cargo-zigbuild is using - https://github.com/rust-cross/cargo-zigbuild/blob/main/Dockerfile +rust-version = "1.87.0" readme = "README.md" keywords = ["docker", "tui", "tokio", "terminal", "podman"] categories = ["command-line-utilities"] diff --git a/src/app_data/mod.rs b/src/app_data/mod.rs index 1139ad6..09080af 100644 --- a/src/app_data/mod.rs +++ b/src/app_data/mod.rs @@ -896,7 +896,7 @@ impl AppData { if f.starts_with('/') { f.remove(0); } - (*f).to_string() + (*f).clone() }) }); diff --git a/src/main.rs b/src/main.rs index 30ea787..1459de9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,7 +48,7 @@ fn read_docker_host(config: &Config) -> Option { config .host .as_ref() - .map_or_else(|| std::env::var(DOCKER_HOST).ok(), |x| Some(x.to_string())) + .map_or_else(|| std::env::var(DOCKER_HOST).ok(), |x| Some(x.clone())) } /// Create docker daemon handler, and only spawn up the docker data handler if a ping returns non-error