Use is_ok()
This commit is contained in:
parent
fcebd5ce0c
commit
1326accdcf
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ fn show_version() {
|
|||
pub fn main() {
|
||||
use std::env;
|
||||
|
||||
if env::var("CLIPPY_DOGFOOD").map(|_| true).unwrap_or(false) {
|
||||
if env::var("CLIPPY_DOGFOOD").is_ok() {
|
||||
panic!("yummy");
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ fn show_version() {
|
|||
pub fn main() {
|
||||
use std::env;
|
||||
|
||||
if env::var("CLIPPY_DOGFOOD").map(|_| true).unwrap_or(false) {
|
||||
if env::var("CLIPPY_DOGFOOD").is_ok() {
|
||||
panic!("yummy");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue