mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
style: run formatter for imports
This commit is contained in:
committed by
Benoît Cortier
parent
e76f15e8bc
commit
9bc382348d
@@ -3,15 +3,16 @@
|
||||
#![allow(clippy::print_stdout)]
|
||||
|
||||
use core::time::Duration;
|
||||
use std::{io::Write, time::Instant};
|
||||
use std::io::Write;
|
||||
use std::time::Instant;
|
||||
|
||||
use anyhow::Context;
|
||||
use ironrdp::pdu::rdp::capability_sets::{CmdFlags, EntropyBits};
|
||||
use ironrdp::server::{
|
||||
bench::encoder::{UpdateEncoder, UpdateEncoderCodecs},
|
||||
BitmapUpdate, DesktopSize, DisplayUpdate, PixelFormat, RdpServerDisplayUpdates,
|
||||
};
|
||||
use tokio::{fs::File, io::AsyncReadExt, time::sleep};
|
||||
use ironrdp::server::bench::encoder::{UpdateEncoder, UpdateEncoderCodecs};
|
||||
use ironrdp::server::{BitmapUpdate, DesktopSize, DisplayUpdate, PixelFormat, RdpServerDisplayUpdates};
|
||||
use tokio::fs::File;
|
||||
use tokio::io::AsyncReadExt;
|
||||
use tokio::time::sleep;
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() -> Result<(), anyhow::Error> {
|
||||
|
||||
@@ -439,11 +439,10 @@ macro_rules! make_bridge {
|
||||
|
||||
#[doc(hidden)]
|
||||
pub mod internal {
|
||||
#[doc(hidden)]
|
||||
pub use web_sys;
|
||||
|
||||
#[doc(hidden)]
|
||||
pub use wasm_bindgen;
|
||||
#[doc(hidden)]
|
||||
pub use web_sys;
|
||||
|
||||
#[doc(hidden)]
|
||||
pub fn setup(log_level: &str) {
|
||||
|
||||
@@ -209,9 +209,10 @@ pub fn find_different_rects_sub<const BPP: usize>(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use bytemuck::cast_slice;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_intersect() {
|
||||
let r1 = Rect::new(0, 0, 640, 480);
|
||||
|
||||
@@ -296,9 +296,12 @@ pub trait RdpServerDisplay: Send {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{BitmapUpdate, Framebuffer};
|
||||
use core::num::NonZeroU16;
|
||||
use ironrdp_graphics::{diff::Rect, image_processing::PixelFormat};
|
||||
|
||||
use ironrdp_graphics::diff::Rect;
|
||||
use ironrdp_graphics::image_processing::PixelFormat;
|
||||
|
||||
use super::{BitmapUpdate, Framebuffer};
|
||||
|
||||
#[test]
|
||||
fn framebuffer_update() {
|
||||
|
||||
Reference in New Issue
Block a user