Remove #[macro_use] from tests

This commit is contained in:
Alex van de Sandt 2020-01-08 22:56:51 -05:00
parent 81b8bdd7fc
commit 1055bbe4aa
5 changed files with 5 additions and 20 deletions

View file

@ -1,10 +1,6 @@
#[macro_use]
extern crate clap;
extern crate regex;
include!("../clap-test.rs");
use clap::{App, AppSettings, Arg, ArgGroup, ArgSettings, ErrorKind};
use clap::{App, AppSettings, Arg, ArgGroup, ArgSettings, ErrorKind, clap_app};
static REQUIRE_DELIM_HELP: &str = "test 1.3
Kevin K.

View file

@ -1,7 +1,4 @@
#[macro_use]
extern crate clap;
use clap::ErrorKind;
use clap::{arg_enum, clap_app, ErrorKind};
#[test]
fn basic() {

View file

@ -1,13 +1,9 @@
#[macro_use]
extern crate clap;
extern crate regex;
use std::io::Write;
use std::str;
include!("../clap-test.rs");
use clap::{App, Arg};
use clap::{App, Arg, arg_enum};
static SCF2OP: &str = "flag present 2 times
option NOT present

View file

@ -1,5 +1,4 @@
#[macro_use]
extern crate version_sync;
use version_sync::{assert_html_root_url_updated, assert_markdown_deps_updated};
#[test]
fn test_readme_deps() {

View file

@ -1,9 +1,6 @@
#![cfg(feature = "yaml")]
#[macro_use]
extern crate clap;
use clap::App;
use clap::{App, load_yaml};
#[test]
fn create_app_from_yaml() {