Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/taskchampion-cpp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@

fn rt() -> tokio::runtime::Handle {
tokio::runtime::Builder::new_current_thread()
.enable_time()
.build()
.unwrap()
.handle()
Expand All @@ -325,8 +326,8 @@
let entire_msg = err
.chain()
.skip(1)
.fold(err.to_string(), |a, b| format!("{}: {}", a, b));

Check warning on line 329 in src/taskchampion-cpp/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check & Clippy

variables can be used directly in the `format!` string
write!(f, "{}", entire_msg)

Check warning on line 330 in src/taskchampion-cpp/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check & Clippy

variables can be used directly in the `format!` string
} else {
self.0.fmt(f)
}
Expand Down Expand Up @@ -369,7 +370,7 @@

fn uuid_from_string(uuid: Pin<&CxxString>) -> ffi::Uuid {
let Ok(uuid) = tc::Uuid::parse_str(uuid.to_str().expect("invalid utf-8")) else {
panic!("{} is not a valid UUID", uuid);

Check warning on line 373 in src/taskchampion-cpp/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check & Clippy

variables can be used directly in the `format!` string
};
uuid.into()
}
Expand Down
Loading