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.

remote: Do not include prerelease and build meta in asset queries (#43611)

Piotr Osiewicz82b768258f96
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs
index 1f4d0563065..06e87c53dba 100644
--- a/crates/auto_update/src/auto_update.rs
+++ b/crates/auto_update/src/auto_update.rs
@@ -510,7 +510,9 @@ impl AutoUpdater {
(None, None, None)
};
- let version = if let Some(version) = version {
+ let version = if let Some(mut version) = version {
+ version.pre = semver::Prerelease::EMPTY;
+ version.build = semver::BuildMetadata::EMPTY;
version.to_string()
} else {
"latest".to_string()