Skip to content

Commit

Permalink
Follow style
Browse files Browse the repository at this point in the history
  • Loading branch information
SludgePhD committed Aug 19, 2022
1 parent 9430d56 commit 8a1af5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
26 changes: 10 additions & 16 deletions src/platform_impl/linux/wayland/seat/dnd/handlers.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
use std::{
io::{self, Read},
os::unix::prelude::{AsRawFd, RawFd},
path::PathBuf,
str,
};
use std::io::{self, Read};
use std::os::unix::prelude::{AsRawFd, RawFd};
use std::path::PathBuf;
use std::str;

use percent_encoding::percent_decode_str;
use sctk::{
data_device::{DataOffer, DndEvent, ReadPipe},
reexports::calloop::{generic::Generic, Interest, LoopHandle, Mode, PostAction},
};

use crate::{
dpi::PhysicalPosition,
event::WindowEvent,
platform_impl::wayland::{event_loop::WinitState, make_wid, DeviceId},
};
use sctk::data_device::{DataOffer, DndEvent, ReadPipe};
use sctk::reexports::calloop::{generic::Generic, Interest, LoopHandle, Mode, PostAction};

use crate::dpi::PhysicalPosition;
use crate::event::WindowEvent;
use crate::platform_impl::wayland::{event_loop::WinitState, make_wid, DeviceId};

use super::DndInner;

Expand Down
10 changes: 4 additions & 6 deletions src/platform_impl/linux/wayland/seat/dnd/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
mod handlers;

use sctk::{data_device::DataDevice, reexports::calloop::LoopHandle};
use wayland_client::{
protocol::{wl_data_device_manager::WlDataDeviceManager, wl_seat::WlSeat},
Attached,
};
use wayland_client::protocol::{wl_data_device_manager::WlDataDeviceManager, wl_seat::WlSeat};
use wayland_client::Attached;

use crate::platform_impl::{wayland::event_loop::WinitState, WindowId};

mod handlers;

pub(crate) struct Dnd {
_data_device: DataDevice,
}
Expand Down

0 comments on commit 8a1af5d

Please sign in to comment.