Skip to content

Commit 1e05578

Browse files
authored
chore: resolve lint issues (GreptimeTeam#115)
1 parent a5d1770 commit 1e05578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/duration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn display_duration(duration: &Duration) -> String {
115115
let mut ss = String::new();
116116

117117
let mut f = |unit: &str, mult: u128, exact: bool| {
118-
if exact && ms % mult != 0 {
118+
if exact && !ms.is_multiple_of(mult) {
119119
return;
120120
}
121121

0 commit comments

Comments
 (0)