-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #377 - sru:scopewide, r=kbknapp
Scopewide attributes For `tests/yaml.rs`, it makes sense to use scope wide attribute, which applies to the whole file, because yaml test will not be tested without yaml feature. For `examples/17_yaml.rs`, I moved the `use` statement inside so that seemingly random unused import warning doesn't pop up. For `tests/unicode.rs`, well, I tried fiddling around with unicode with Windows without much success...
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#![cfg(feature="yaml")] | ||
|
||
#[macro_use] | ||
extern crate clap; | ||
|
||
use clap::App; | ||
|
||
#[test] | ||
#[cfg(feature="yaml")] | ||
fn create_app_from_yaml() { | ||
let yml = load_yaml!("app.yml"); | ||
App::from_yaml(yml); | ||
} | ||
} |