@@ -51,11 +51,9 @@ pub(crate) struct CacheLineAlign<T>(pub T);
5151#[ cfg( feature = "_internal_c_ffi" ) ]
5252pub mod capi;
5353
54- pub use attr:: Attributes ;
55- pub use attr:: ControlFlow ;
54+ pub use attr:: { Attributes , ControlFlow } ;
5655pub use error:: Error ;
57- pub use hist:: Histogram ;
58- pub use hist:: HistogramEntry ;
56+ pub use hist:: { Histogram , HistogramEntry } ;
5957pub use image:: Image ;
6058#[ doc( hidden) ]
6159pub use pal:: Palette ;
@@ -88,8 +86,7 @@ fn copy_img() {
8886fn takes_rgba ( ) {
8987 let liq = Attributes :: new ( ) ;
9088
91- let img = vec ! [ RGBA { r: 0 , g: 0 , b: 0 , a: 0 } ; 8 ] ;
92-
89+ let img = vec ! [ RGBA { r: 0 , g: 0 , b: 0 , a: 0 } ; 8 ] ;
9390
9491 liq. new_image_borrowed ( & img, 1 , 1 , 0.0 ) . unwrap ( ) ;
9592 liq. new_image_borrowed ( & img, 4 , 2 , 0.0 ) . unwrap ( ) ;
@@ -103,11 +100,11 @@ fn histogram() {
103100 let attr = Attributes :: new ( ) ;
104101 let mut hist = Histogram :: new ( & attr) ;
105102
106- let bitmap1 = [ RGBA { r : 0 , g : 0 , b : 0 , a : 0 } ; 1 ] ;
103+ let bitmap1 = [ RGBA { r : 0 , g : 0 , b : 0 , a : 0 } ; 1 ] ;
107104 let mut image1 = attr. new_image ( & bitmap1[ ..] , 1 , 1 , 0.0 ) . unwrap ( ) ;
108105 hist. add_image ( & attr, & mut image1) . unwrap ( ) ;
109106
110- let bitmap2 = [ RGBA { r : 255 , g : 255 , b : 255 , a : 255 } ; 1 ] ;
107+ let bitmap2 = [ RGBA { r : 255 , g : 255 , b : 255 , a : 255 } ; 1 ] ;
111108 let mut image2 = attr. new_image ( & bitmap2[ ..] , 1 , 1 , 0.0 ) . unwrap ( ) ;
112109 hist. add_image ( & attr, & mut image2) . unwrap ( ) ;
113110
0 commit comments