diff options
Diffstat (limited to 'src/bin/zot/zot/item.rs')
-rw-r--r-- | src/bin/zot/zot/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/zot/zot/item.rs b/src/bin/zot/zot/item.rs index 648a9f0..dbb39ba 100644 --- a/src/bin/zot/zot/item.rs +++ b/src/bin/zot/zot/item.rs @@ -18,7 +18,7 @@ use clap::ArgMatches; use zotapi; -pub fn post(client: &zotapi::Client, args: &ArgMatches) { +pub async fn post(client: &zotapi::Client, args: &ArgMatches<'_>) { let mut msg = zotapi::item(); let body: String; @@ -42,7 +42,7 @@ pub fn post(client: &zotapi::Client, args: &ArgMatches) { } } - match msg.create(&client) { + match msg.create(&client).await { Ok(res) => { if res.success { println!("New item with id {} posted successfully!", res.item_id); |