style: cargo +nightly fmt

This commit is contained in:
Benoît CORTIER 2024-11-20 00:24:58 +09:00 committed by Benoît Cortier
parent 807eb59b07
commit 294af1cc5c
213 changed files with 546 additions and 566 deletions

View file

@ -1,5 +1,4 @@
use ironrdp_core::Encode;
use ironrdp_core::{invalid_field_err, EncodeResult, WriteCursor};
use ironrdp_core::{invalid_field_err, Encode, EncodeResult, WriteCursor};
use ironrdp_graphics::image_processing::PixelFormat;
use ironrdp_graphics::rdp6::{ABgrChannels, ARgbChannels, BgrAChannels, BitmapStreamEncoder, RgbAChannels};
use ironrdp_pdu::bitmap::{self, BitmapData, BitmapUpdateData, Compression};

View file

@ -4,8 +4,7 @@ pub(crate) mod rfx;
use core::{cmp, mem};
use anyhow::{Context, Result};
use ironrdp_core::Encode;
use ironrdp_core::WriteCursor;
use ironrdp_core::{Encode, WriteCursor};
use ironrdp_pdu::fast_path::{EncryptionFlags, FastPathHeader, FastPathUpdatePdu, Fragmentation, UpdateCode};
use ironrdp_pdu::geometry::ExclusiveRectangle;
use ironrdp_pdu::pointer::{ColorPointerAttribute, Point16, PointerAttribute, PointerPositionAttribute};

View file

@ -1,4 +1,7 @@
use std::{fs::File, io::BufReader, path::Path, sync::Arc};
use std::fs::File;
use std::io::BufReader;
use std::path::Path;
use std::sync::Arc;
use anyhow::Context;
use rustls_pemfile::{certs, pkcs8_private_keys};

View file

@ -4,8 +4,7 @@
)]
#![allow(clippy::arithmetic_side_effects)] // TODO: should we enable this lint back?
pub use tokio;
pub use tokio_rustls;
pub use {tokio, tokio_rustls};
#[macro_use]
extern crate tracing;

View file

@ -947,7 +947,8 @@ impl<W> FramedWrite for SharedWriter<'_, W>
where
W: FramedWrite,
{
type WriteAllFut<'write> = core::pin::Pin<Box<dyn core::future::Future<Output = std::io::Result<()>> + 'write>>
type WriteAllFut<'write>
= core::pin::Pin<Box<dyn core::future::Future<Output = std::io::Result<()>> + 'write>>
where
Self: 'write;