Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scopewide attributes #377

Merged
merged 2 commits into from
Jan 12, 2016
Merged

Scopewide attributes #377

merged 2 commits into from
Jan 12, 2016

Conversation

sru
Copy link
Contributor

@sru sru commented Jan 12, 2016

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...

@yo-bot
Copy link

yo-bot commented Jan 12, 2016

r? @kbknapp

(yo-bot has picked a reviewer for you, use r? to override)

@kbknapp
Copy link
Member

kbknapp commented Jan 12, 2016

Great point!

@homu r+

@homu
Copy link
Contributor

homu commented Jan 12, 2016

📌 Commit 3936b28 has been approved by kbknapp

homu added a commit that referenced this pull request Jan 12, 2016
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...
@homu
Copy link
Contributor

homu commented Jan 12, 2016

⌛ Testing commit 3936b28 with merge 68d4331...

homu added a commit that referenced this pull request Jan 12, 2016
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...
@homu
Copy link
Contributor

homu commented Jan 12, 2016

☀️ Test successful - status

@homu homu merged commit 3936b28 into clap-rs:master Jan 12, 2016
@sru sru deleted the scopewide branch January 12, 2016 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants