Compare commits
2 Commits
29928aa763
...
0f97534ec5
Author | SHA1 | Date | |
---|---|---|---|
|
0f97534ec5 | ||
|
5a147db4c5 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/target
|
/target
|
||||||
/time-tracker-token
|
/time-tracker-token
|
||||||
|
/workspace
|
||||||
|
@ -66,7 +66,7 @@ fn main() {
|
|||||||
times.len(),
|
times.len(),
|
||||||
if times.is_empty() { '.' } else { ':' }
|
if times.is_empty() { '.' } else { ':' }
|
||||||
);
|
);
|
||||||
if let Some(max_title_len) = times.iter().map(|(_, title)| title.len()).max() {
|
if let Some(max_title_len) = times.iter().map(|(_, title)| title.width()).max() {
|
||||||
let max_len = max_title_len + 2;
|
let max_len = max_title_len + 2;
|
||||||
println!("┌──────────┬{}┐", "─".repeat(max_len));
|
println!("┌──────────┬{}┐", "─".repeat(max_len));
|
||||||
for (time, title) in times {
|
for (time, title) in times {
|
||||||
|
Loading…
Reference in New Issue
Block a user