Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Clean up some warnings

Marshall Bowers5355007719bd
diff --git a/crates/gpui2/src/platform/mac/window.rs b/crates/gpui2/src/platform/mac/window.rs
index 195684e2c2f..46f96043f2e 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 506b64a4cb2..c094f21db4c 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<Item = &Entry> {
self.entries_by_path