fix formatting 👀
This commit is contained in:
1 parent
38ee9f5df1
commit
c645d79a67
2 files changed
+10
-3
No files matched your search
@@ -64,7 +64,10 @@ impl DataDeviceHandler for WaylandState {
|
||||
.lock()
|
||||
.unwrap();
|
||||
|
||||
pstate.drag_and_drop_session = Some(DragAndDropSession { window_id, drag_offer });
|
||||
pstate.drag_and_drop_session = Some(DragAndDropSession {
|
||||
window_id,
|
||||
drag_offer,
|
||||
});
|
||||
log::trace!("DnD: session started for window_id={}", window_id);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,12 +27,16 @@ impl DragAndDropSession {
|
||||
/// Takes the current drag offer and initiates a receive into a pipe,
|
||||
/// returning that window and pipe descriptor.
|
||||
pub fn create_pipe_for_drop(&mut self) -> Option<WindowAndPipe> {
|
||||
let read = self.drag_offer
|
||||
let read = self
|
||||
.drag_offer
|
||||
.receive(URI_MIME_TYPE.to_string())
|
||||
.map_err(|err| log::error!("Unable to receive data: {:#}", err))
|
||||
.ok()?;
|
||||
self.drag_offer.finish();
|
||||
Some(WindowAndPipe { window_id: self.window_id, read })
|
||||
Some(WindowAndPipe {
|
||||
window_id: self.window_id,
|
||||
read,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn read_paths_from_pipe(read: ReadPipe) -> Option<Vec<PathBuf>> {
|
||||
|
||||
Reference in new issue
Block a user