@@ -110,13 +110,13 @@ fn new_miner(config: &config::Config, scheme: &Scheme, ap: Arc<AccountProvider>)
110110 match miner. engine_type ( ) {
111111 EngineType :: PoW => match & config. mining . author {
112112 Some ( ref author) => {
113- miner. set_author ( author. address . clone ( ) , None ) . expect ( "set_author never fails when PoW is used" )
113+ miner. set_author ( author. address , None ) . expect ( "set_author never fails when PoW is used" )
114114 }
115115 None => return Err ( "mining.author is not specified" . to_string ( ) ) ,
116116 } ,
117117 EngineType :: InternalSealing => match & config. mining . engine_signer {
118118 Some ( ref engine_signer) => {
119- miner. set_author ( engine_signer. address . clone ( ) , None ) . map_err ( |e| format ! ( "{:?}" , e) ) ?
119+ miner. set_author ( engine_signer. address , None ) . map_err ( |e| format ! ( "{:?}" , e) ) ?
120120 }
121121 None => return Err ( "mining.engine_signer is not specified" . to_string ( ) ) ,
122122 } ,
@@ -159,7 +159,7 @@ fn load_password_file(path: Option<String>) -> Result<PasswordFile, String> {
159159
160160fn unlock_accounts ( ap : Arc < AccountProvider > , pf : & PasswordFile ) -> Result < ( ) , String > {
161161 for entry in pf. entries ( ) {
162- ap. unlock_account_permanently ( entry. address . address . clone ( ) , entry. password . clone ( ) )
162+ ap. unlock_account_permanently ( entry. address . address , entry. password . clone ( ) )
163163 . map_err ( |e| format ! ( "Failed to unlock account {}: {}" , entry. address. address, e) ) ?;
164164 }
165165 Ok ( ( ) )
0 commit comments