File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use std:: {
2- path:: PathBuf ,
2+ path:: Path ,
33 process:: { Command , Stdio } ,
44} ;
55
@@ -12,12 +12,12 @@ pub trait WalletClient {
1212 view_key : & str ,
1313 spend_key : & str ,
1414 password : & str ,
15- wallet_file : & PathBuf ,
15+ wallet_file : & Path ,
1616 ) -> Result < ( ) , anyhow:: Error > ;
1717
1818 async fn scan (
1919 & self ,
20- wallet_file : & PathBuf ,
20+ wallet_file : & Path ,
2121 password : & str ,
2222 remote_url : & str ,
2323 ) -> Result < ( ) , anyhow:: Error > ;
@@ -39,8 +39,8 @@ impl WalletClient for BinaryWalletClient {
3939 & self ,
4040 view_key : & str ,
4141 spend_key : & str ,
42- password : & str ,
43- wallet_file : & PathBuf ,
42+ _password : & str ,
43+ wallet_file : & Path ,
4444 ) -> Result < ( ) , anyhow:: Error > {
4545 let import_status = Command :: new ( & self . executable_path )
4646 . arg ( "import-view-key" )
@@ -79,7 +79,7 @@ impl WalletClient for BinaryWalletClient {
7979
8080 async fn scan (
8181 & self ,
82- wallet_file : & PathBuf ,
82+ wallet_file : & Path ,
8383 password : & str ,
8484 _remote_url : & str ,
8585 ) -> Result < ( ) , anyhow:: Error > {
@@ -131,7 +131,7 @@ mod libminotari {
131131 view_key : & str ,
132132 spend_key : & str ,
133133 password : & str ,
134- wallet_file : & PathBuf ,
134+ wallet_file : & Path ,
135135 ) -> Result < ( ) , anyhow:: Error > {
136136 minotari:: init_with_view_key (
137137 view_key,
@@ -146,7 +146,7 @@ mod libminotari {
146146
147147 async fn scan (
148148 & self ,
149- wallet_file : & PathBuf ,
149+ wallet_file : & Path ,
150150 password : & str ,
151151 remote_url : & str ,
152152 ) -> Result < ( ) , anyhow:: Error > {
You can’t perform that action at this time.
0 commit comments