Use is_ok()

This commit is contained in:
topecongiro 2017-11-02 07:09:46 +09:00
parent fcebd5ce0c
commit 1326accdcf
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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");
}