gdritter repos rrecutils / b030e8b
Get rid of extraneous panic Getty Ritter 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
106106 fs::File::open(path)?.read_to_end(&mut buf)?;
107107 String::from_utf8(buf)?
108108 },
109 None => panic!("No template specified!"),
109 None => Err(format!("No template specified!"))?,
110110 };
111111
112112 let recfile = rrecutils::Recfile::parse(input)?;