Skip to content

Commit

Permalink
Fixed new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali authored and Kobzol committed Dec 19, 2024
1 parent 24345e3 commit 9665ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/hyperqueue/src/client/commands/journal/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn format_payload(event: EventPayload) -> serde_json::Value {
// We need a special formatter, since BString cannot be used as a hashmap key for JSON
struct JobInfoFormatter<'a>(&'a JobDescription);

impl<'a> JobInfoFormatter<'a> {
impl JobInfoFormatter<'_> {
fn to_json(&self) -> serde_json::Value {
// Only format the job name for now
json!({
Expand Down
2 changes: 1 addition & 1 deletion crates/tako/src/internal/common/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl<'a> ScopedTimer<'a> {
}
}

impl<'a> Drop for ScopedTimer<'a> {
impl Drop for ScopedTimer<'_> {
fn drop(&mut self) {
tracing::info!(
action = "measure",
Expand Down

0 comments on commit 9665ba9

Please sign in to comment.