From 07e0580d2d9fc097548fa05868726347d694a9ff Mon Sep 17 00:00:00 2001 From: Jonathan Spira Date: Sun, 24 Jan 2021 15:16:17 -0800 Subject: [PATCH] fixed formatting issues --- imgui/src/drag_drop.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/imgui/src/drag_drop.rs b/imgui/src/drag_drop.rs index d896fec..5d1b3da 100644 --- a/imgui/src/drag_drop.rs +++ b/imgui/src/drag_drop.rs @@ -104,7 +104,12 @@ impl<'a> DragDropSource<'a> { if should_begin { unsafe { - sys::igSetDragDropPayload(self.name.as_ptr(), self.payload, self.size, self.cond as i32); + sys::igSetDragDropPayload( + self.name.as_ptr(), + self.payload, + self.size, + self.cond as i32, + ); Some(DragDropSourceToolTip::push()) } @@ -174,7 +179,11 @@ impl<'ui> DragDropTarget<'ui> { /// Accepts, popping the drag_drop payload, if it exists. If `DragDropFlags::ACCEPT_BEFORE_DELIVERY` is /// set, this function will return `Some` even if the type is wrong as long as there is a payload to accept. /// How do we possibly handle communicating that this data is somewhat immutable? - pub fn accept_drag_drop_payload(&self, name: &ImStr, flags: DragDropFlags) -> Option { + pub fn accept_drag_drop_payload( + &self, + name: &ImStr, + flags: DragDropFlags, + ) -> Option { unsafe { let inner = sys::igAcceptDragDropPayload(name.as_ptr(), flags.bits() as i32); if inner.is_null() {