From c645d79a67f7e6b60895d1f05d6f10b897162182 Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Tue, 7 Jul 2026 09:30:22 +0200 Subject: [PATCH] =?UTF-8?q?fix=20formatting=20=F0=9F=91=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- window/src/os/wayland/data_device.rs | 5 ++++- window/src/os/wayland/drag_and_drop.rs | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/window/src/os/wayland/data_device.rs b/window/src/os/wayland/data_device.rs index 3e4bdb86f..b4520a209 100644 --- a/window/src/os/wayland/data_device.rs +++ b/window/src/os/wayland/data_device.rs @@ -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); } diff --git a/window/src/os/wayland/drag_and_drop.rs b/window/src/os/wayland/drag_and_drop.rs index c74727827..a788ca1df 100644 --- a/window/src/os/wayland/drag_and_drop.rs +++ b/window/src/os/wayland/drag_and_drop.rs @@ -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 { - 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> {