style: apply cargo +nightly fmt (#849)

This commit is contained in:
Benoît Cortier 2025-07-01 03:24:41 -07:00 committed by GitHub
parent 2a49588b3d
commit 6910a3ca36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 18 deletions

View file

@ -14,6 +14,7 @@ use ironrdp::session::{fast_path, ActiveStage, ActiveStageOutput, GracefulDiscon
use ironrdp::svc::SvcMessage;
use ironrdp::{cliprdr, connector, rdpdr, rdpsnd, session};
use ironrdp_core::WriteBuf;
use ironrdp_dvc_pipe_proxy::DvcNamedPipeProxy;
use ironrdp_rdpsnd_native::cpal;
use ironrdp_tokio::reqwest::ReqwestNetworkClient;
use ironrdp_tokio::{single_sequence_step_read, split_tokio_framed, FramedWrite};
@ -25,7 +26,6 @@ use tokio::sync::mpsc;
use winit::event_loop::EventLoopProxy;
use crate::config::{Config, RDCleanPathConfig};
use ironrdp_dvc_pipe_proxy::DvcNamedPipeProxy;
#[derive(Debug)]
pub enum RdpOutputEvent {

View file

@ -8,5 +8,4 @@ extern crate tracing;
mod windows;
mod platform;
pub use platform::DvcNamedPipeProxy;
pub use self::platform::DvcNamedPipeProxy;

View file

@ -1,11 +1,9 @@
#[cfg(target_os = "windows")]
mod windows;
#[cfg(target_os = "windows")]
pub use self::windows::DvcNamedPipeProxy;
#[cfg(not(target_os = "windows"))]
mod unix;
#[cfg(target_os = "windows")]
pub use windows::DvcNamedPipeProxy;
#[cfg(not(target_os = "windows"))]
pub use unix::DvcNamedPipeProxy;
pub use self::unix::DvcNamedPipeProxy;

View file

@ -2,21 +2,23 @@
//!
//! Some of the wrappers are based on `win-api-wrappers` code (simplified/reduced functionality).
mod error;
mod event;
mod pipe;
mod semaphore;
pub(crate) use error::WindowsError;
pub(crate) use event::Event;
pub(crate) use pipe::MessagePipeServer;
pub(crate) use semaphore::Semaphore;
use windows::Win32::Foundation::{
ERROR_IO_PENDING, HANDLE, WAIT_ABANDONED_0, WAIT_EVENT, WAIT_FAILED, WAIT_OBJECT_0, WAIT_TIMEOUT,
};
use windows::Win32::System::Threading::{WaitForMultipleObjects, INFINITE};
mod error;
pub(crate) use self::error::WindowsError;
mod event;
pub(crate) use self::event::Event;
mod pipe;
pub(crate) use self::pipe::MessagePipeServer;
mod semaphore;
pub(crate) use self::semaphore::Semaphore;
/// Thin wrapper around borrowed `windows` crate `HANDLE` reference.
/// This is used to ensure handle lifetime when passing it to FFI functions
/// (see `wait_any_with_timeout` for example).