Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove the Errors section from rust docs
Petros Amoiridisadc5ef911fbd
diff --git a/crates/util/src/paths.rs b/crates/util/src/paths.rsindex b04c12a2049..3fccb0c896e 100644--- a/crates/util/src/paths.rs+++ b/crates/util/src/paths.rs@@ -54,12 +54,6 @@ pub mod legacy {/// * A `PathBuf` containing the compacted file path. If the input path/// does not have the user's home directory prefix, or if we are not on/// Linux or macOS, the original path is returned unchanged.-///-/// # Errors-///-/// This function will not produce any errors, but in case the input path-/// cannot be stripped of the home directory prefix, the original path-/// will be returned unchanged.pub fn compact(path: &Path) -> PathBuf {if cfg!(target_os = "linux") || cfg!(target_os = "macos") {match path.strip_prefix(HOME.as_path()) {