浏览代码

refactor!: remove re-export from `tauri::path` module (#9104)

Amr Bashir 1 年之前
父节点
当前提交
720357fd5c
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      .changes/path-result-error-rexport.md
  2. 1 1
      core/tauri/src/path/mod.rs

+ 5 - 0
.changes/path-result-error-rexport.md

@@ -0,0 +1,5 @@
+---
+'tauri': 'major:breaking'
+---
+
+Removed `tauri::path::Result` and `tauri::path::Error` which were merely an unintentional re-export of `tauri::Result` and `tauri::Error` so use those instead.

+ 1 - 1
core/tauri/src/path/mod.rs

@@ -11,7 +11,7 @@ use serde_repr::{Deserialize_repr, Serialize_repr};
 
 pub(crate) mod plugin;
 
-pub use crate::error::*;
+use crate::error::*;
 
 #[cfg(target_os = "android")]
 mod android;