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"); 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 static REQUIRE_DELIM_HELP: &str = "test 1.3
Kevin K. Kevin K.

View file

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

View file

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

View file

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

View file

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