chore: Rust linting
This commit is contained in:
+1
-1
@@ -896,7 +896,7 @@ impl AppData {
|
||||
if f.starts_with('/') {
|
||||
f.remove(0);
|
||||
}
|
||||
(*f).to_string()
|
||||
(*f).clone()
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ fn read_docker_host(config: &Config) -> Option<String> {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user