File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ impl Db {
726726 ) -> DbResult < ( ) > {
727727 let ec = serde_json:: to_string ( & exchange_credentials) . unwrap ( ) ;
728728 // user can't be an empty string
729- let user = format ! ( "{}_{exchange_account}" , exchange . to_string ( ) ) ;
729+ let user = format ! ( "{exchange }_{exchange_account}" ) ;
730730 let keyring_entry = match keyring:: Entry :: new ( & exchange. to_string ( ) , & user) {
731731 Ok ( entry) => entry,
732732 Err ( e) => {
@@ -746,7 +746,7 @@ impl Db {
746746 exchange : Exchange ,
747747 exchange_account : & str ,
748748 ) -> Option < ExchangeCredentials > {
749- let user = format ! ( "{}_{exchange_account}" , exchange . to_string ( ) ) ;
749+ let user = format ! ( "{exchange }_{exchange_account}" ) ;
750750 let keyring_entry = match keyring:: Entry :: new ( & exchange. to_string ( ) , & user) {
751751 Ok ( entry) => entry,
752752 Err ( e) => {
@@ -775,7 +775,7 @@ impl Db {
775775 exchange : Exchange ,
776776 exchange_account : & str ,
777777 ) -> DbResult < ( ) > {
778- let user = format ! ( "{}_{exchange_account}" , exchange . to_string ( ) ) ;
778+ let user = format ! ( "{exchange }_{exchange_account}" ) ;
779779 let keyring_entry = match keyring:: Entry :: new ( & exchange. to_string ( ) , & user) {
780780 Ok ( entry) => entry,
781781 Err ( e) => {
You can’t perform that action at this time.
0 commit comments