From 3e627a2e38d296b919e0b4439f2a93b0fb1d5e21 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 28 Oct 2018 22:31:08 +0100 Subject: Import macros explicitly in zot cli example. This requires rust 1.30.0 or later. --- examples/zotcli.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/zotcli.rs b/examples/zotcli.rs index 2804754..6b3a97b 100644 --- a/examples/zotcli.rs +++ b/examples/zotcli.rs @@ -17,11 +17,18 @@ extern crate zotapi; extern crate dotenv; -#[macro_use] extern crate clap; extern crate serde_json; -use clap::{Arg, SubCommand}; +use clap::{ + Arg, + app_from_crate, + crate_name, + crate_version, + crate_authors, + crate_description, + SubCommand +}; use dotenv::dotenv; use std::env; -- cgit v1.2.3