Browse Source

fix(core): Rust documentation generation

Lucas Nogueira 3 năm trước cách đây
mục cha
commit
aab8006b93

+ 1 - 1
core/tauri-runtime-wry/src/lib.rs

@@ -481,7 +481,7 @@ impl ClipboardManager for ClipboardManagerWrapper {
   }
 }
 
-/// Wrapper around a [`wry::application::window::Icon`] that can be created from an [`Icon`].
+/// Wrapper around a [`wry::application::window::Icon`] that can be created from an [`WindowIcon`].
 pub struct WryIcon(WryWindowIcon);
 
 fn icon_err<E: std::error::Error + Send + 'static>(e: E) -> Error {

+ 2 - 1
core/tauri-utils/src/config.rs

@@ -770,7 +770,7 @@ pub enum FsAllowlistScope {
     #[serde(default)]
     allow: Vec<PathBuf>,
     /// A list of paths that are not allowed by this scope.
-    /// This gets precedence over the [`Self::allow`] list.
+    /// This gets precedence over the [`Self::Scope::allow`] list.
     #[serde(default)]
     deny: Vec<PathBuf>,
   },
@@ -1289,6 +1289,7 @@ impl Allowlist for DialogAllowlistConfig {
 /// - "https://**": allows all HTTPS urls
 /// - "https://*.github.com/tauri-apps/tauri": allows any subdomain of "github.com" with the "tauri-apps/api" path
 /// - "https://myapi.service.com/users/*": allows access to any URLs that begins with "https://myapi.service.com/users/"
+#[allow(rustdoc::bare_urls)]
 #[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
 #[cfg_attr(feature = "schema", derive(JsonSchema))]
 pub struct HttpAllowlistScope(pub Vec<Url>);

+ 1 - 1
core/tauri/src/app.rs

@@ -367,7 +367,7 @@ macro_rules! shared_app_impl {
       ///
       /// Data URLs are only supported with the `window-data-url` feature flag.
       ///
-      /// See [`Self::window_builder`] for an API with extended functionality.
+      /// See [`crate::window::WindowBuilder::new`] for an API with extended functionality.
       #[deprecated(
         since = "1.0.0-rc.4",
         note = "The `window_builder` function offers an easier API with extended functionality"