General Cleanup (#1)

- Split large lib-file into smaller files
- Renamed getters to follow rust naming convention
- Pretty debug print in examples
- No hardcoded dependency versions in lib
This commit is contained in:
Schmiddiii 2021-10-04 17:32:57 +02:00 committed by GitHub
parent 125fdee6c2
commit 412a8ffa52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 310 additions and 314 deletions

View file

@ -1,4 +1,4 @@
use piped::piped::PipedClient;
use piped::PipedClient;
use reqwest::ClientBuilder;
#[tokio::main]
@ -13,9 +13,9 @@ async fn main() {
let client = PipedClient::new(httpclient, instance);
let suggestions = client
.get_search_suggestions("techlore".to_string())
.search_suggestions("techlore".to_string())
.await
.unwrap();
println!("{:?}", suggestions);
println!("{:#?}", suggestions);
}