Use unwrap everywhere to debug snap

This commit is contained in:
Dheepak Krishnamurthy 2020-10-29 00:00:35 -06:00
parent ec3f12635c
commit 42d2704bb7
3 changed files with 6 additions and 6 deletions

View file

@ -96,9 +96,9 @@ impl Config {
fn get_color_collection() -> Result<HashMap<String, TColor>, Box<dyn Error>> {
let mut color_collection = HashMap::new();
let output = Command::new("task").arg("rc.color=off").arg("show").output()?;
let output = Command::new("task").arg("rc.color=off").arg("show").output().unwrap();
let data = String::from_utf8(output.stdout).expect("Unable to convert stdout to string");
let data = String::from_utf8(output.stdout).unwrap();
for line in data.split('\n') {
if line.starts_with("color.") {
let mut i = line.split(' ');