mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Use anyhow
This commit is contained in:
parent
66a26b88d0
commit
bf0fb46f90
7 changed files with 36 additions and 22 deletions
|
@ -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![];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue