mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
Autoformat changes
This commit is contained in:
parent
46f4e16c02
commit
069a98b4b1
1 changed files with 14 additions and 4 deletions
18
src/app.rs
18
src/app.rs
|
@ -207,8 +207,8 @@ impl TTApp {
|
|||
0
|
||||
} else {
|
||||
self.tasks.lock().unwrap()[selected]
|
||||
.id()
|
||||
.unwrap_or_default()
|
||||
.id()
|
||||
.unwrap_or_default()
|
||||
};
|
||||
match self.mode {
|
||||
AppMode::Report => self.draw_command(f, rects[1], &self.filter[..], "Filter Tasks"),
|
||||
|
@ -220,7 +220,12 @@ impl TTApp {
|
|||
AppMode::ModifyTask => {
|
||||
f.set_cursor(rects[1].x + self.cursor_location as u16 + 1, rects[1].y + 1);
|
||||
f.render_widget(Clear, rects[1]);
|
||||
self.draw_command(f, rects[1], &self.modify[..], format!("Modify Task {}", task_id).as_str());
|
||||
self.draw_command(
|
||||
f,
|
||||
rects[1],
|
||||
&self.modify[..],
|
||||
format!("Modify Task {}", task_id).as_str(),
|
||||
);
|
||||
}
|
||||
AppMode::LogTask => {
|
||||
f.set_cursor(rects[1].x + self.cursor_location as u16 + 1, rects[1].y + 1);
|
||||
|
@ -230,7 +235,12 @@ impl TTApp {
|
|||
AppMode::AnnotateTask => {
|
||||
f.set_cursor(rects[1].x + self.cursor_location as u16 + 1, rects[1].y + 1);
|
||||
f.render_widget(Clear, rects[1]);
|
||||
self.draw_command(f, rects[1], &self.command[..], format!("Annotate Task {}", task_id).as_str());
|
||||
self.draw_command(
|
||||
f,
|
||||
rects[1],
|
||||
&self.command[..],
|
||||
format!("Annotate Task {}", task_id).as_str(),
|
||||
);
|
||||
}
|
||||
AppMode::AddTask => {
|
||||
f.set_cursor(rects[1].x + self.cursor_location as u16 + 1, rects[1].y + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue