Your Name 1 жил өмнө
parent
commit
b80432bcd7
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/variants.rs

+ 2 - 2
src/variants.rs

@@ -31,7 +31,7 @@ use crate::{
 use anyhow::{anyhow, bail, Context, Ok, Result};
 use charming::{
     component::{Axis, Grid},
-    element::{AxisLabel, AxisTick, AxisType, BoundaryGap, ItemStyle, Label, LabelPosition},
+    element::{AxisLabel, AxisType, Label, LabelPosition},
     series::Bar,
     Chart,
 };
@@ -1166,7 +1166,7 @@ impl AllStats {
     }
 
     pub fn generate_graph(&self, prefix: &str) -> anyhow::Result<()> {
-        let bar_interval = 20 as f64;
+        let bar_interval = 20_f64;
         // 1. Consequences
         let consequences_data: Vec<&Stat> = self
             .variants_stats