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

Add option-env-unwrap lint #5148

Merged

Conversation

krishna-veerareddy
Copy link
Contributor

changelog: Add option-env-unwrap lint

Fixes #5147

clippy_lints/src/option_env_unwrap.rs Outdated Show resolved Hide resolved
clippy_lints/src/option_env_unwrap.rs Outdated Show resolved Hide resolved
@flip1995 flip1995 added the S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) label Feb 9, 2020
Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall.

clippy_lints/src/option_env_unwrap.rs Outdated Show resolved Hide resolved
@flip1995
Copy link
Member

flip1995 commented Feb 9, 2020

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 9, 2020

📌 Commit a3a1587 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Feb 9, 2020

⌛ Testing commit a3a1587 with merge 785f494...

bors added a commit that referenced this pull request Feb 9, 2020
…, r=flip1995

Add `option-env-unwrap` lint

changelog: Add `option-env-unwrap` lint

Fixes #5147
@bors
Copy link
Collaborator

bors commented Feb 9, 2020

💔 Test failed - status-appveyor

The tests were failing on windows because the `HOME` env variable
doesn't exist on it so using the `PATH` variable to test instead.
@flip1995
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 10, 2020

📌 Commit b48b221 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Feb 10, 2020

⌛ Testing commit b48b221 with merge c066807...

bors added a commit that referenced this pull request Feb 10, 2020
…, r=flip1995

Add `option-env-unwrap` lint

changelog: Add `option-env-unwrap` lint

Fixes #5147
@bors
Copy link
Collaborator

bors commented Feb 10, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing c066807 to master...

@bors bors merged commit b48b221 into rust-lang:master Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use env!() instead of option_env!().unwrap()
4 participants