Skip to content

Commit

Permalink
windows clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog-crabnebula committed Dec 11, 2023
1 parent 0731bfb commit 5f99d87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/drag/src/platform_impl/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,8 @@ pub fn start_drag<W: HasRawWindowHandle, F: Fn(DragResult) + Send + 'static>(

if drop_result == DRAGDROP_S_DROP {
on_drop_callback(DragResult::Dropped);
} else if drop_result == DRAGDROP_S_CANCEL {
on_drop_callback(DragResult::Cancel);
} else {
// DRAGDROP_S_CANCEL
on_drop_callback(DragResult::Cancel);
}
}
Expand Down

0 comments on commit 5f99d87

Please sign in to comment.