瀏覽代碼

chore(deps) Update Rust crate semver to v1 (#1909)

* chore(deps) Update Rust crate semver to v1

* fix: build

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] 4 年之前
父節點
當前提交
4d38f2e2b4
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      core/tauri/Cargo.toml
  2. 1 1
      core/tauri/src/api/error.rs
  3. 1 1
      core/tauri/src/updater/error.rs

+ 1 - 1
core/tauri/Cargo.toml

@@ -44,7 +44,7 @@ tauri-utils = { version = "1.0.0-beta.0", path = "../tauri-utils" }
 tauri-runtime-wry = { version = "0.1.1", path = "../tauri-runtime-wry", optional = true }
 rand = "0.8"
 tempfile = "3"
-semver = "0.11"
+semver = "1.0"
 serde_repr = "0.1"
 zip = "0.5"
 ignore = "0.4"

+ 1 - 1
core/tauri/src/api/error.rs

@@ -46,7 +46,7 @@ pub enum Error {
   InvalidHttpForm,
   /// Semver error.
   #[error("{0}")]
-  Semver(#[from] semver::SemVerError),
+  Semver(#[from] semver::Error),
   /// JSON error.
   #[error("{0}")]
   Json(#[from] serde_json::Error),

+ 1 - 1
core/tauri/src/updater/error.rs

@@ -13,7 +13,7 @@ pub enum Error {
   Io(#[from] std::io::Error),
   /// Semver Errors.
   #[error("Unable to compare version: {0}")]
-  Semver(#[from] semver::SemVerError),
+  Semver(#[from] semver::Error),
   /// JSON (Serde) Errors.
   #[error("JSON error: {0}")]
   SerdeJson(#[from] serde_json::Error),