File tree 3 files changed +7
-2
lines changed
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() {
1284
1284
}
1285
1285
1286
1286
/// 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 < ( ) > {
1288
1288
self . webview . dispatcher . navigate ( url) . map_err ( Into :: into)
1289
1289
}
1290
1290
Original file line number Diff line number Diff line change @@ -1883,7 +1883,7 @@ impl<R: Runtime> WebviewWindow<R> {
1883
1883
}
1884
1884
1885
1885
/// 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 < ( ) > {
1887
1887
self . webview . navigate ( url)
1888
1888
}
1889
1889
You can’t perform that action at this time.
0 commit comments