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:
Marshall Bowers 2024-03-27 12:11:12 -04:00 committed by GitHub
parent 8c56a4b305
commit 3f5f64a044
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 10 deletions

View file

@ -95,7 +95,7 @@ async fn main() -> Result<()> {
version: manifest.version,
description: manifest.description,
authors: manifest.authors,
schema_version: Some(manifest.schema_version),
schema_version: Some(manifest.schema_version.0),
repository: manifest
.repository
.ok_or_else(|| anyhow!("missing repository in extension manifest"))?,