Skip to content

Commit

Permalink
Fix Clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoll committed Aug 4, 2024
1 parent fe73b26 commit f2b336b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions juniper/src/integrations/jiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ mod local_time {
v.strftime(FORMAT_NO_MILLIS)
} else {
// `LocalTime` scalar only allows precision up to milliseconds.
v.clone()
.round(jiff::Unit::Millisecond)
(*v).round(jiff::Unit::Millisecond)
.unwrap_or_else(|e| panic!("failed to format `LocalTime`: {e}"))
.strftime(FORMAT)
}
Expand Down

0 comments on commit f2b336b

Please sign in to comment.