refactor(main): fixing some stuff for clippy
This commit is contained in:
parent
724062e471
commit
cbb3449c9f
2 changed files with 6 additions and 6 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -1395,7 +1395,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "szurubooru-client"
|
name = "szurubooru-client"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@ async fn test_creating_posts(client: &SzurubooruClient) {
|
||||||
let folly1_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("folly1.jpg");
|
let folly1_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("folly1.jpg");
|
||||||
let mut folly1_file =
|
let mut folly1_file =
|
||||||
File::open(&folly1_path).expect(&format!("Could not open file {folly1_path:?}"));
|
File::open(&folly1_path).expect(&format!("Could not open file {folly1_path:?}"));
|
||||||
let folly1_post = client
|
let _folly1_post = client
|
||||||
.request()
|
.request()
|
||||||
.create_post_from_file(&mut folly1_file, None, "folly1.jpg", &folly1_obj)
|
.create_post_from_file(&mut folly1_file, None, "folly1.jpg", &folly1_obj)
|
||||||
.await
|
.await
|
||||||
|
|
@ -372,7 +372,7 @@ async fn test_creating_posts(client: &SzurubooruClient) {
|
||||||
.build()
|
.build()
|
||||||
.expect("Could not build second upload object");
|
.expect("Could not build second upload object");
|
||||||
let folly2_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("folly2.jpg");
|
let folly2_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("folly2.jpg");
|
||||||
let folly2_post = client
|
let _folly2_post = client
|
||||||
.request()
|
.request()
|
||||||
.create_post_from_file_path(folly2_path, None::<String>, &folly2_obj)
|
.create_post_from_file_path(folly2_path, None::<String>, &folly2_obj)
|
||||||
.await
|
.await
|
||||||
|
|
@ -580,7 +580,7 @@ async fn test_pool_categories(client: &SzurubooruClient) {
|
||||||
.expect("Could not delete pool category");
|
.expect("Could not delete pool category");
|
||||||
|
|
||||||
info!("Setting default pool category");
|
info!("Setting default pool category");
|
||||||
let pool_cat = client
|
let _pool_cat = client
|
||||||
.request()
|
.request()
|
||||||
.set_default_pool_category(pool_cat.name.unwrap())
|
.set_default_pool_category(pool_cat.name.unwrap())
|
||||||
.await
|
.await
|
||||||
|
|
@ -674,7 +674,7 @@ async fn test_pools(client: &SzurubooruClient) {
|
||||||
.merge_to(cat_pool.id.unwrap())
|
.merge_to(cat_pool.id.unwrap())
|
||||||
.build()
|
.build()
|
||||||
.expect("Unable to build merge object");
|
.expect("Unable to build merge object");
|
||||||
let cat_pool = client
|
let _cat_pool = client
|
||||||
.request()
|
.request()
|
||||||
.merge_pools(&merge_pool_obj)
|
.merge_pools(&merge_pool_obj)
|
||||||
.await
|
.await
|
||||||
|
|
@ -686,7 +686,7 @@ async fn test_comments(client: &SzurubooruClient) {
|
||||||
info!("Testing comments");
|
info!("Testing comments");
|
||||||
|
|
||||||
info!("Listing comments");
|
info!("Listing comments");
|
||||||
let comment_list = client
|
let _comment_list = client
|
||||||
.request()
|
.request()
|
||||||
.list_comments(None)
|
.list_comments(None)
|
||||||
.await
|
.await
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue