Wrap extension schema version in a newtype (#9872)
This PR wraps the extension schema version in a newtype, for some additional type safety. Release Notes: - N/A
This commit is contained in:
parent
8c56a4b305
commit
3f5f64a044
4 changed files with 22 additions and 10 deletions
|
@ -1,3 +1,4 @@
|
|||
use crate::extension_manifest::SchemaVersion;
|
||||
use crate::{
|
||||
Event, ExtensionIndex, ExtensionIndexEntry, ExtensionIndexLanguageEntry,
|
||||
ExtensionIndexThemeEntry, ExtensionManifest, ExtensionStore, GrammarManifestEntry,
|
||||
|
@ -146,7 +147,7 @@ async fn test_extension_store(cx: &mut TestAppContext) {
|
|||
id: "zed-ruby".into(),
|
||||
name: "Zed Ruby".into(),
|
||||
version: "1.0.0".into(),
|
||||
schema_version: 0,
|
||||
schema_version: SchemaVersion::ZERO,
|
||||
description: None,
|
||||
authors: Vec::new(),
|
||||
repository: None,
|
||||
|
@ -171,7 +172,7 @@ async fn test_extension_store(cx: &mut TestAppContext) {
|
|||
id: "zed-monokai".into(),
|
||||
name: "Zed Monokai".into(),
|
||||
version: "2.0.0".into(),
|
||||
schema_version: 0,
|
||||
schema_version: SchemaVersion::ZERO,
|
||||
description: None,
|
||||
authors: vec![],
|
||||
repository: None,
|
||||
|
@ -328,7 +329,7 @@ async fn test_extension_store(cx: &mut TestAppContext) {
|
|||
id: "zed-gruvbox".into(),
|
||||
name: "Zed Gruvbox".into(),
|
||||
version: "1.0.0".into(),
|
||||
schema_version: 0,
|
||||
schema_version: SchemaVersion::ZERO,
|
||||
description: None,
|
||||
authors: vec![],
|
||||
repository: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue