mirror of https://github.com/bobwen-dev/hunter
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:
parent
d41ee4aedb
commit
38e1bf656b
|
@ -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![]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue