@@ -51,11 +51,9 @@ pub(crate) struct CacheLineAlign<T>(pub T);
51
51
#[ cfg( feature = "_internal_c_ffi" ) ]
52
52
pub mod capi;
53
53
54
- pub use attr:: Attributes ;
55
- pub use attr:: ControlFlow ;
54
+ pub use attr:: { Attributes , ControlFlow } ;
56
55
pub use error:: Error ;
57
- pub use hist:: Histogram ;
58
- pub use hist:: HistogramEntry ;
56
+ pub use hist:: { Histogram , HistogramEntry } ;
59
57
pub use image:: Image ;
60
58
#[ doc( hidden) ]
61
59
pub use pal:: Palette ;
@@ -88,8 +86,7 @@ fn copy_img() {
88
86
fn takes_rgba ( ) {
89
87
let liq = Attributes :: new ( ) ;
90
88
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 ] ;
93
90
94
91
liq. new_image_borrowed ( & img, 1 , 1 , 0.0 ) . unwrap ( ) ;
95
92
liq. new_image_borrowed ( & img, 4 , 2 , 0.0 ) . unwrap ( ) ;
@@ -103,11 +100,11 @@ fn histogram() {
103
100
let attr = Attributes :: new ( ) ;
104
101
let mut hist = Histogram :: new ( & attr) ;
105
102
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 ] ;
107
104
let mut image1 = attr. new_image ( & bitmap1[ ..] , 1 , 1 , 0.0 ) . unwrap ( ) ;
108
105
hist. add_image ( & attr, & mut image1) . unwrap ( ) ;
109
106
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 ] ;
111
108
let mut image2 = attr. new_image ( & bitmap2[ ..] , 1 , 1 , 0.0 ) . unwrap ( ) ;
112
109
hist. add_image ( & attr, & mut image2) . unwrap ( ) ;
113
110
0 commit comments