File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' tauri ' : ' minor:bug'
3+ ---
4+
5+ ` Webview::navigate ` and ` WebviewWindow::navigate ` borrows ` &self ` instead of unnecessarily borrowing ` &mut self ` .
Original file line number Diff line number Diff line change @@ -1284,7 +1284,7 @@ fn main() {
12841284 }
12851285
12861286 /// Navigates the webview to the defined url.
1287- pub fn navigate ( & mut self , url : Url ) -> crate :: Result < ( ) > {
1287+ pub fn navigate ( & self , url : Url ) -> crate :: Result < ( ) > {
12881288 self . webview . dispatcher . navigate ( url) . map_err ( Into :: into)
12891289 }
12901290
Original file line number Diff line number Diff line change @@ -1883,7 +1883,7 @@ impl<R: Runtime> WebviewWindow<R> {
18831883 }
18841884
18851885 /// Navigates the webview to the defined url.
1886- pub fn navigate ( & mut self , url : Url ) -> crate :: Result < ( ) > {
1886+ pub fn navigate ( & self , url : Url ) -> crate :: Result < ( ) > {
18871887 self . webview . navigate ( url)
18881888 }
18891889
You can’t perform that action at this time.
0 commit comments