Skip to content

Commit 163cf4c

Browse files
committed
style: cargo fmt
1 parent e7c0937 commit 163cf4c

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

dstack-types/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ pub fn dstack_agent_address() -> String {
264264
return address;
265265
}
266266
// Try new path first, fall back to old path for backward compatibility
267-
const SOCKET_PATHS: &[&str] = &[
268-
"/var/run/dstack/dstack.sock",
269-
"/var/run/dstack.sock",
270-
];
267+
const SOCKET_PATHS: &[&str] = &["/var/run/dstack/dstack.sock", "/var/run/dstack.sock"];
271268
for path in SOCKET_PATHS {
272269
if std::path::Path::new(path).exists() {
273270
return format!("unix:{}", path);

sdk/rust/src/dstack_client.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ fn get_endpoint(endpoint: Option<&str>) -> String {
3737
return sim_endpoint;
3838
}
3939
// Try new path first, fall back to old path for backward compatibility
40-
const SOCKET_PATHS: &[&str] = &[
41-
"/var/run/dstack/dstack.sock",
42-
"/var/run/dstack.sock",
43-
];
40+
const SOCKET_PATHS: &[&str] = &["/var/run/dstack/dstack.sock", "/var/run/dstack.sock"];
4441
for path in SOCKET_PATHS {
4542
if std::path::Path::new(path).exists() {
4643
return path.to_string();

sdk/rust/src/tappd_client.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ fn get_tappd_endpoint(endpoint: Option<&str>) -> String {
2222
return sim_endpoint;
2323
}
2424
// Try new path first, fall back to old path for backward compatibility
25-
const SOCKET_PATHS: &[&str] = &[
26-
"/var/run/dstack/tappd.sock",
27-
"/var/run/tappd.sock",
28-
];
25+
const SOCKET_PATHS: &[&str] = &["/var/run/dstack/tappd.sock", "/var/run/tappd.sock"];
2926
for path in SOCKET_PATHS {
3027
if std::path::Path::new(path).exists() {
3128
return path.to_string();

0 commit comments

Comments
 (0)