@@ -174,7 +174,7 @@ where
174174 for & ( x, y) in s {
175175 let x_pos = value_to_face_offset ( x, x_axis, face_width) ;
176176 let y_pos = -value_to_face_offset ( y, y_axis, face_height) ;
177- let radius = style. get_size ( ) . clone ( ) . unwrap_or ( 5. ) as f64 ;
177+ let radius = f64 :: from ( style. get_size ( ) . clone ( ) . unwrap_or ( 5. ) ) ;
178178 match style. get_marker ( ) . clone ( ) . unwrap_or ( style:: Marker :: Circle ) {
179179 style:: Marker :: Circle => {
180180 group. append (
@@ -241,7 +241,7 @@ where
241241 let l_pos = value_to_face_offset ( l, x_axis, face_width) ;
242242 let u_pos = value_to_face_offset ( u, x_axis, face_width) ;
243243 let width = u_pos - l_pos;
244- let count_scaled = value_to_face_offset ( count as f64 , y_axis, face_height) ;
244+ let count_scaled = value_to_face_offset ( f64:: from ( count ) , y_axis, face_height) ;
245245 let rect = node:: element:: Rectangle :: new ( )
246246 . set ( "x" , l_pos)
247247 . set ( "y" , -count_scaled)
@@ -385,7 +385,7 @@ where
385385}
386386
387387pub fn draw_face_barchart < L , S > (
388- d : & f64 ,
388+ d : f64 ,
389389 label : & L ,
390390 x_axis : & axis:: CategoricalAxis ,
391391 y_axis : & axis:: ContinuousAxis ,
@@ -406,7 +406,7 @@ where
406406
407407 let box_width = space_per_tick / 2. ;
408408
409- let box_start = -value_to_face_offset ( * d, y_axis, face_height) ;
409+ let box_start = -value_to_face_offset ( d, y_axis, face_height) ;
410410 let box_end = -value_to_face_offset ( 0.0 , y_axis, face_height) ;
411411
412412 group. append (
0 commit comments