cleanup conditional compilation

This commit is contained in:
Ferdinand Schober
2023-02-13 21:35:06 +01:00
parent 339e513646
commit f20f009b41
6 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,10 @@
#[cfg(windows)]
pub mod windows;
#[cfg(unix)]
pub mod wayland;
#[cfg(unix)]
pub mod x11;
#[derive(Clone, Copy, Debug)]

View File

@@ -1,4 +1,3 @@
#![cfg(unix)]
use crate::client::{Client, ClientHandle};
use crate::request::{self, Request};
use std::collections::HashMap;

View File

@@ -1,4 +1,3 @@
#![cfg(unix)]
use crate::{
client::{Client, ClientHandle, Position},
request,

View File

@@ -1,4 +1,3 @@
#![cfg(windows)]
use std::sync::mpsc::Receiver;
use winapi::{self, um::winuser::{INPUT, LPINPUT, INPUT_MOUSE, MOUSEINPUT, MOUSEEVENTF_MOVE}};

View File

@@ -1,4 +1,3 @@
#![cfg(windows)]
use std::sync::mpsc::SyncSender;
use crate::{event::Event, client::{ClientHandle, Client}, request::Server};

View File

@@ -1,4 +1,3 @@
#![cfg(unix)]
use std::{sync::mpsc::Receiver, ptr};
use x11::{xtest, xlib};