remove client build warnings

This commit is contained in:
ayham 2021-05-31 17:39:01 +03:00
parent b7d792c6dd
commit 9a554e85c2
Signed by: ayham
GPG Key ID: EAB7F5A9DF503678
1 changed files with 3 additions and 1 deletions

View File

@ -113,6 +113,8 @@ pub async fn libtrader_init_client() -> std::io::Result<()> {
use crate::client::account::authorization::acc_auth;
let mut jwt: String = String::new();
println!("{}", jwt); // this is for removing pisky warnings,
// this is fine as long as this code is sandbox
match acc_auth(&mut socket, &username, &email, &password).await {
Ok(auth) => {
jwt = auth;
@ -128,7 +130,7 @@ pub async fn libtrader_init_client() -> std::io::Result<()> {
}
use crate::client::account::retrieval_transaction::acc_retrieve_transaction;
match acc_retrieve_transaction(&mut socket, String::from(jwt.as_str())).await {
match acc_retrieve_transaction(&mut socket, jwt).await {
Ok(transaction) => println!("we got the transactions {:#?}", transaction),
Err(err) => panic!("panik! {}", err),
}