Fix unused-result warning on dropDestination handlers

SwiftUI's dropDestination(for:action:) action closure is Void-
returning, not Bool, so handleDrop's Bool return was being silently
discarded — made the discard explicit with _ =.
This commit is contained in:
2026-07-28 13:15:11 +02:00
parent 24847762c4
commit 8c0cfb87f5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -150,7 +150,7 @@ struct SidebarView: View {
} header: {
Text("Unfiled")
.dropDestination(for: String.self) { items, _ in
handleDrop(items, toFolder: nil)
_ = handleDrop(items, toFolder: nil)
}
}
}
@@ -192,7 +192,7 @@ struct SidebarView: View {
}
}
.dropDestination(for: String.self) { items, _ in
handleDrop(items, toFolder: folder.id)
_ = handleDrop(items, toFolder: folder.id)
}
}
+2 -2
View File
@@ -240,7 +240,7 @@ struct ConversationListView: View {
} header: {
Text("Unfiled")
.dropDestination(for: String.self) { items, _ in
handleDrop(items, toFolder: nil)
_ = handleDrop(items, toFolder: nil)
}
}
}
@@ -431,7 +431,7 @@ struct ConversationListView: View {
}
}
.dropDestination(for: String.self) { items, _ in
handleDrop(items, toFolder: folder.id)
_ = handleDrop(items, toFolder: folder.id)
}
}