Skip to content

Commit

Permalink
[sweep] basic mouse support
Browse files Browse the repository at this point in the history
  • Loading branch information
aslpavel committed Apr 17, 2024
1 parent 024507e commit 715bb44
Show file tree
Hide file tree
Showing 11 changed files with 353 additions and 267 deletions.
123 changes: 65 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chronicler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "chronicler"
build = "build.rs"
version = "0.3.3"
version = "0.3.4"
edition = "2021"

[dependencies]
Expand Down
6 changes: 4 additions & 2 deletions chronicler/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ impl Haystack for HistoryEntry {
let mut table = Table::new(10, Some(left_face), None);
table.push(
Text::new().push_str("Status", None).take(),
Text::new().push_fmt(format_args!("{}", self.status)).take(),
Text::new()
.push_fmt(&format_args!("{}", self.status))
.take(),
);
if let Some(date) = self
.start_dt()
Expand All @@ -140,7 +142,7 @@ impl Haystack for HistoryEntry {
table.push(
Text::new().push_str("Duration", None).take(),
Text::new()
.push_fmt(format_args!("{:.3}s", self.end_ts - self.start_ts))
.push_fmt(&format_args!("{:.3}s", self.end_ts - self.start_ts))
.take(),
);
table.push(
Expand Down
Loading

0 comments on commit 715bb44

Please sign in to comment.