diff --git a/.changes/extension_path_rename.md b/.changes/extension_path_rename.md new file mode 100644 index 000000000..8ef639e98 --- /dev/null +++ b/.changes/extension_path_rename.md @@ -0,0 +1,5 @@ +--- +"wry": "minor" +--- + +Rename `{WebViewBuilderExtWindows, WebViewBuilderExtUnix}::with_extension_path` to `with_extensions_path`. \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index eb98f3dea..38d3f26f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1302,7 +1302,7 @@ pub trait WebViewBuilderExtWindows { /// Set the path from which to load extensions from. Extensions stored in this path should be unpacked. /// /// Does nothing if browser extensions are disabled. See [`with_browser_extensions_enabled`](Self::with_browser_extensions_enabled) - fn with_extension_path(self, path: impl Into) -> Self; + fn with_extensions_path(self, path: impl Into) -> Self; } #[cfg(windows)] @@ -1349,7 +1349,7 @@ impl WebViewBuilderExtWindows for WebViewBuilder<'_> { }) } - fn with_extension_path(self, path: impl Into) -> Self { + fn with_extensions_path(self, path: impl Into) -> Self { self.and_then(|mut b| { b.platform_specific.extension_path = Some(path.into()); Ok(b) @@ -1469,7 +1469,7 @@ pub trait WebViewBuilderExtUnix<'a> { W: gtk::prelude::IsA; /// Set the path from which to load extensions from. - fn with_extension_path(self, path: impl Into) -> Self; + fn with_extensions_path(self, path: impl Into) -> Self; } #[cfg(any( @@ -1490,7 +1490,7 @@ impl<'a> WebViewBuilderExtUnix<'a> for WebViewBuilder<'a> { .map(|webview| WebView { webview }) } - fn with_extension_path(self, path: impl Into) -> Self { + fn with_extensions_path(self, path: impl Into) -> Self { self.and_then(|mut b| { b.platform_specific.extension_path = Some(path.into()); Ok(b)