Use anyhow

This commit is contained in:
Dheepak Krishnamurthy 2021-03-27 14:46:06 -06:00
parent 66a26b88d0
commit bf0fb46f90
7 changed files with 36 additions and 22 deletions

View file

@ -1,3 +1,4 @@
use anyhow::Result;
use chrono::{Datelike, Local, NaiveDate, NaiveDateTime, TimeZone};
use itertools::join;
use std::error::Error;
@ -42,7 +43,7 @@ pub struct TaskReportTable {
}
impl TaskReportTable {
pub fn new() -> Result<Self, Box<dyn Error>> {
pub fn new() -> Result<Self> {
let virtual_tags = vec![
"PROJECT",
"BLOCKED",
@ -89,7 +90,7 @@ impl TaskReportTable {
Ok(task_report_table)
}
pub fn export_headers(&mut self) -> Result<(), Box<dyn Error>> {
pub fn export_headers(&mut self) -> Result<()> {
self.columns = vec![];
self.labels = vec![];