clippy
This commit is contained in:
1 parent
6d8041a59a
commit
1364ff62b8
1 file changed
+1
-1
@@ -23,7 +23,7 @@ impl Mode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn label(self) -> String {
|
pub fn label(self) -> String {
|
||||||
if self.refresh % 1000 == 0 {
|
if self.refresh.is_multiple_of(1000) {
|
||||||
format!("{} Hz", self.refresh / 1000)
|
format!("{} Hz", self.refresh / 1000)
|
||||||
} else {
|
} else {
|
||||||
format!("{:.3} Hz", f64::from(self.refresh) / 1000.)
|
format!("{:.3} Hz", f64::from(self.refresh) / 1000.)
|
||||||
|
|||||||
Reference in new issue
Block a user