Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Replace todo calls with error values in linux/platform (#8531)
Ömer Sinan Ağacan9095a6b04e1d
diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rsindex 74a2bd301f2..feadee0ad6a 100644--- a/crates/gpui/src/platform/linux/platform.rs+++ b/crates/gpui/src/platform/linux/platform.rs@@ -321,8 +321,11 @@ impl Platform for LinuxPlatform {})}+ //todo!(linux)fn app_path(&self) -> Result<PathBuf> {- unimplemented!()+ Err(anyhow::Error::msg(+ "Platform<LinuxPlatform>::app_path is not implemented yet",+ ))}// todo(linux)@@ -332,8 +335,11 @@ impl Platform for LinuxPlatform {UtcOffset::UTC}+ //todo!(linux)fn path_for_auxiliary_executable(&self, name: &str) -> Result<PathBuf> {- unimplemented!()+ Err(anyhow::Error::msg(+ "Platform<LinuxPlatform>::path_for_auxiliary_executable is not implemented yet",+ ))}// todo(linux)@@ -352,16 +358,25 @@ impl Platform for LinuxPlatform {None}+ //todo!(linux)fn write_credentials(&self, url: &str, username: &str, password: &[u8]) -> Task<Result<()>> {- unimplemented!()+ Task::Ready(Some(Err(anyhow::Error::msg(+ "Platform<LinuxPlatform>::with_credentials is not implemented yet",+ ))))}+ //todo!(linux)fn read_credentials(&self, url: &str) -> Task<Result<Option<(String, Vec<u8>)>>> {- unimplemented!()+ Task::Ready(Some(Err(anyhow::Error::msg(+ "Platform<LinuxPlatform>::read_credentials is not implemented yet",+ ))))}+ //todo!(linux)fn delete_credentials(&self, url: &str) -> Task<Result<()>> {- unimplemented!()+ Task::Ready(Some(Err(anyhow::Error::msg(+ "Platform<LinuxPlatform>::delete_credentials is not implemented yet",+ ))))}fn window_appearance(&self) -> crate::WindowAppearance {