fix lscolors config if environment variable not set

Per the lscolors crate docs, this switches from an `unwrap` to
`unwrap_or_default` so that this does not panic when this environment
variable is not set for the user, fixing a crash on startup in hunter.
This commit is contained in:
Conrad Dean 2019-04-13 22:03:06 -04:00
parent d41ee4aedb
commit 38e1bf656b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ use crate::widget::Events;
lazy_static! {
static ref COLORS: LsColors = LsColors::from_env().unwrap();
static ref COLORS: LsColors = LsColors::from_env().unwrap_or_default();
static ref TAGS: RwLock<(bool, Vec<PathBuf>)> = RwLock::new((false, vec![]));
}