Skip to content

Commit 6910a3c

Browse files
authored
style: apply cargo +nightly fmt (#849)
1 parent 2a49588 commit 6910a3c

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

crates/ironrdp-client/src/rdp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use ironrdp::session::{fast_path, ActiveStage, ActiveStageOutput, GracefulDiscon
1414
use ironrdp::svc::SvcMessage;
1515
use ironrdp::{cliprdr, connector, rdpdr, rdpsnd, session};
1616
use ironrdp_core::WriteBuf;
17+
use ironrdp_dvc_pipe_proxy::DvcNamedPipeProxy;
1718
use ironrdp_rdpsnd_native::cpal;
1819
use ironrdp_tokio::reqwest::ReqwestNetworkClient;
1920
use ironrdp_tokio::{single_sequence_step_read, split_tokio_framed, FramedWrite};
@@ -25,7 +26,6 @@ use tokio::sync::mpsc;
2526
use winit::event_loop::EventLoopProxy;
2627

2728
use crate::config::{Config, RDCleanPathConfig};
28-
use ironrdp_dvc_pipe_proxy::DvcNamedPipeProxy;
2929

3030
#[derive(Debug)]
3131
pub enum RdpOutputEvent {

crates/ironrdp-dvc-pipe-proxy/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ extern crate tracing;
88
mod windows;
99

1010
mod platform;
11-
12-
pub use platform::DvcNamedPipeProxy;
11+
pub use self::platform::DvcNamedPipeProxy;
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#[cfg(target_os = "windows")]
22
mod windows;
3+
#[cfg(target_os = "windows")]
4+
pub use self::windows::DvcNamedPipeProxy;
35

46
#[cfg(not(target_os = "windows"))]
57
mod unix;
6-
7-
#[cfg(target_os = "windows")]
8-
pub use windows::DvcNamedPipeProxy;
9-
108
#[cfg(not(target_os = "windows"))]
11-
pub use unix::DvcNamedPipeProxy;
9+
pub use self::unix::DvcNamedPipeProxy;

crates/ironrdp-dvc-pipe-proxy/src/windows/mod.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
//!
33
//! Some of the wrappers are based on `win-api-wrappers` code (simplified/reduced functionality).
44
5-
mod error;
6-
mod event;
7-
mod pipe;
8-
mod semaphore;
9-
10-
pub(crate) use error::WindowsError;
11-
pub(crate) use event::Event;
12-
pub(crate) use pipe::MessagePipeServer;
13-
pub(crate) use semaphore::Semaphore;
14-
155
use windows::Win32::Foundation::{
166
ERROR_IO_PENDING, HANDLE, WAIT_ABANDONED_0, WAIT_EVENT, WAIT_FAILED, WAIT_OBJECT_0, WAIT_TIMEOUT,
177
};
188
use windows::Win32::System::Threading::{WaitForMultipleObjects, INFINITE};
199

10+
mod error;
11+
pub(crate) use self::error::WindowsError;
12+
13+
mod event;
14+
pub(crate) use self::event::Event;
15+
16+
mod pipe;
17+
pub(crate) use self::pipe::MessagePipeServer;
18+
19+
mod semaphore;
20+
pub(crate) use self::semaphore::Semaphore;
21+
2022
/// Thin wrapper around borrowed `windows` crate `HANDLE` reference.
2123
/// This is used to ensure handle lifetime when passing it to FFI functions
2224
/// (see `wait_any_with_timeout` for example).

0 commit comments

Comments
 (0)