File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri " : " patch:enhance"
3+ ---
4+
5+ Derive ` Clone ` for ` PathResolver ` struct.
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ use std::path::PathBuf;
99/// A helper class to access the mobile path APIs.
1010pub struct PathResolver < R : Runtime > ( pub ( crate ) PluginHandle < R > ) ;
1111
12+ impl < R : Runtime > Clone for PathResolver < R > {
13+ fn clone ( & self ) -> Self {
14+ Self ( self . 0 . clone ( ) )
15+ }
16+ }
17+
1218#[ derive( serde:: Deserialize ) ]
1319struct PathResponse {
1420 path : PathBuf ,
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ use std::path::PathBuf;
99/// The path resolver is a helper class for general and application-specific path APIs.
1010pub struct PathResolver < R : Runtime > ( pub ( crate ) AppHandle < R > ) ;
1111
12+ impl < R : Runtime > Clone for PathResolver < R > {
13+ fn clone ( & self ) -> Self {
14+ Self ( self . 0 . clone ( ) )
15+ }
16+ }
17+
1218impl < R : Runtime > PathResolver < R > {
1319 /// Returns the path to the user's audio directory.
1420 ///
You can’t perform that action at this time.
0 commit comments