From 5355007719bdd24c2ea184bff0bac71205deb733 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 25 Oct 2023 20:40:50 +0200 Subject: [PATCH] Clean up some warnings --- crates/gpui2/src/platform/mac/window.rs | 2 -- crates/project2/src/worktree.rs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/gpui2/src/platform/mac/window.rs b/crates/gpui2/src/platform/mac/window.rs index 195684e2c2f729c9e57d0ff8d486e9f414f2a1e3..46f96043f2ec976e81ed51726e04166dd7ef1162 100644 --- a/crates/gpui2/src/platform/mac/window.rs +++ b/crates/gpui2/src/platform/mac/window.rs @@ -1667,8 +1667,6 @@ extern "C" fn dragging_exited(this: &Object, _: Sel, _: id) { } extern "C" fn perform_drag_operation(this: &Object, _: Sel, dragging_info: id) -> BOOL { - let files = external_paths_from_event(dragging_info); - let window_state = unsafe { get_window_state(this) }; let position = drag_event_position(&window_state, dragging_info); if send_new_event( diff --git a/crates/project2/src/worktree.rs b/crates/project2/src/worktree.rs index 506b64a4cb2eff90396cc0ff87217a72a0e07d68..c094f21db4c736c7270ae31870c2cc4a59aa1152 100644 --- a/crates/project2/src/worktree.rs +++ b/crates/project2/src/worktree.rs @@ -2052,6 +2052,7 @@ impl LocalSnapshot { ignore_stack } + #[allow(dead_code)] // todo!("remove this when we use it") #[cfg(test)] pub(crate) fn expanded_entries(&self) -> impl Iterator { self.entries_by_path