Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Make `App::get_name` return an `Option` (#27209)
Marshall Bowers27ebedf517b7
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rsindex 956cf3f4355..ab5a44392ea 100644--- a/crates/gpui/src/app.rs+++ b/crates/gpui/src/app.rs@@ -1590,10 +1590,10 @@ impl App {.insert(entity_id, window_invalidators);}- /// Get the name for this App.+ /// Returns the name for this [`App`].#[cfg(any(test, feature = "test-support", debug_assertions))]- pub fn get_name(&self) -> &'static str {- self.name.as_ref().unwrap()+ pub fn get_name(&self) -> Option<&'static str> {+ self.name}/// Returns `true` if the platform file picker supports selecting a mix of files and directories.