Skip to content

Commit 8bc1994

Browse files
style: apply nightly rustfmt formatting changes (#1699)
## Summary - Applies latest nightly `rustfmt` formatting across the workspace - Fixes CI preflight formatting check failures caused by updated `rustfmt` style rules (grouped `use` statements now split into individual imports) ## Test plan - [ ] CI preflight formatting check passes Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 40a4247 commit 8bc1994

7 files changed

Lines changed: 90 additions & 24 deletions

File tree

crates/devolutions-pedm-shared/devolutions-pedm-client-http/src/apis/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use {http, hyper, serde_json};
1+
use http;
2+
use hyper;
3+
use serde_json;
24

35
#[derive(Debug)]
46
pub enum Error {

crates/devolutions-pedm-shared/devolutions-pedm-client-http/src/apis/request.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
use std::collections::HashMap;
22
use std::pin::Pin;
33

4-
use futures::Future;
54
use futures::future::*;
5+
use futures::{self, Future};
6+
use hyper;
67
use hyper::header::{AUTHORIZATION, CONTENT_LENGTH, CONTENT_TYPE, HeaderValue, USER_AGENT};
7-
use {futures, hyper, serde, serde_json};
8+
use serde;
9+
use serde_json;
810

911
use super::{Error, configuration};
1012

devolutions-agent/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Used by devolutions-agent binary.
2-
use {ceviche as _, ctrlc as _};
2+
use ceviche as _;
3+
use ctrlc as _;
34

45
#[macro_use]
56
extern crate tracing;

devolutions-agent/src/main.rs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22
#![allow(clippy::print_stdout)]
33

44
// Used by devolutions-agent library.
5-
use {
6-
anyhow as _, async_trait as _, camino as _, devolutions_agent_shared as _, devolutions_gateway_task as _,
7-
devolutions_log as _, futures as _, ironrdp as _, parking_lot as _, rand as _, rustls_pemfile as _, serde as _,
8-
serde_json as _, tap as _, tokio as _, tokio_rustls as _,
9-
};
5+
use anyhow as _;
6+
use async_trait as _;
7+
use camino as _;
8+
use devolutions_agent_shared as _;
9+
use devolutions_gateway_task as _;
10+
use devolutions_log as _;
11+
use futures as _;
12+
use ironrdp as _;
13+
use parking_lot as _;
14+
use rand as _;
15+
use rustls_pemfile as _;
16+
use serde as _;
17+
use serde_json as _;
18+
use tap as _;
19+
use tokio as _;
20+
use tokio_rustls as _;
1021
#[cfg(windows)]
1122
use {
1223
devolutions_pedm as _, hex as _, notify_debouncer_mini as _, reqwest as _, sha2 as _, thiserror as _, uuid as _,

devolutions-gateway/src/main.rs

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,58 @@
22
#![allow(clippy::print_stdout)]
33

44
// Used by devolutions-gateway library.
5+
use argon2 as _;
6+
use async_trait as _;
7+
use axum as _;
8+
use axum_extra as _;
9+
use backoff as _;
10+
use bytes as _;
11+
use camino as _;
12+
use devolutions_agent_shared as _;
13+
use dlopen as _;
14+
use dlopen_derive as _;
15+
use dunce as _;
16+
use etherparse as _;
17+
use hostname as _;
18+
use http_body_util as _;
19+
use hyper as _;
20+
use hyper_util as _;
21+
use ironrdp_core as _;
22+
use ironrdp_pdu as _;
23+
use ironrdp_rdcleanpath as _;
24+
use jmux_proxy as _;
25+
use job_queue as _;
26+
use job_queue_libsql as _;
27+
use multibase as _;
28+
use network_scanner as _;
29+
use ngrok as _;
30+
use nonempty as _;
31+
use pcap_file as _;
32+
use picky as _;
33+
use picky_krb as _;
34+
use pin_project_lite as _;
35+
use portpicker as _;
36+
use reqwest as _;
537
#[cfg(windows)]
638
use rustls_cng as _;
39+
use serde as _;
40+
use serde_urlencoded as _;
41+
use smol_str as _;
42+
use sysinfo as _;
43+
use thiserror as _;
44+
use time as _;
45+
use tokio_rustls as _;
46+
use tokio_tungstenite as _;
47+
use tower as _;
48+
use tower_http as _;
49+
use transport as _;
50+
use tungstenite as _;
51+
use typed_builder as _;
52+
use url as _;
753
#[cfg(feature = "openapi")]
854
use utoipa as _;
9-
use {
10-
argon2 as _, async_trait as _, axum as _, axum_extra as _, backoff as _, bytes as _, camino as _,
11-
devolutions_agent_shared as _, dlopen as _, dlopen_derive as _, dunce as _, etherparse as _, hostname as _,
12-
http_body_util as _, hyper as _, hyper_util as _, ironrdp_core as _, ironrdp_pdu as _, ironrdp_rdcleanpath as _,
13-
jmux_proxy as _, job_queue as _, job_queue_libsql as _, multibase as _, network_scanner as _, ngrok as _,
14-
nonempty as _, pcap_file as _, picky as _, picky_krb as _, pin_project_lite as _, portpicker as _, reqwest as _,
15-
serde as _, serde_urlencoded as _, smol_str as _, sysinfo as _, thiserror as _, time as _, tokio_rustls as _,
16-
tokio_tungstenite as _, tower as _, tower_http as _, transport as _, tungstenite as _, typed_builder as _,
17-
url as _, uuid as _, zeroize as _,
18-
};
55+
use uuid as _;
56+
use zeroize as _;
1957
// Used by tests.
2058
#[cfg(test)]
2159
use {

jetsocat/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// Used by the jetsocat binary.
2-
use {dirs_next as _, humantime as _, seahorse as _, tracing_appender as _, tracing_subscriber as _};
2+
use dirs_next as _;
3+
use humantime as _;
4+
use seahorse as _;
5+
use tracing_appender as _;
6+
use tracing_subscriber as _;
37
// Used by tests
48
#[cfg(test)]
59
use {proptest as _, test_utils as _};

jetsocat/src/main.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,26 @@
22
#![allow(clippy::print_stdout)]
33

44
// Used by the jetsocat library.
5+
use base64 as _;
6+
use futures_util as _;
7+
use jet_proto as _;
8+
use jmux_proto as _;
59
#[cfg(feature = "native-tls")]
610
use native_tls as _;
711
#[cfg(all(feature = "native-tls", not(any(target_os = "windows", target_vendor = "apple"))))]
812
use openssl as _;
13+
use openssl_probe as _;
914
#[cfg(feature = "detect-proxy")]
1015
use proxy_cfg as _;
16+
use proxy_http as _;
17+
use proxy_socks as _;
18+
use proxy_types as _;
19+
use rustls_pemfile as _;
20+
use tinyjson as _;
21+
use tokio_tungstenite as _;
22+
use transport as _;
1123
#[cfg(windows)]
1224
use windows as _;
13-
use {
14-
base64 as _, futures_util as _, jet_proto as _, jmux_proto as _, openssl_probe as _, proxy_http as _,
15-
proxy_socks as _, proxy_types as _, rustls_pemfile as _, tinyjson as _, tokio_tungstenite as _, transport as _,
16-
};
1725
// Used by tests
1826
#[cfg(test)]
1927
use {proptest as _, test_utils as _};

0 commit comments

Comments
 (0)