@@ -25,32 +25,40 @@ extern crate rayon;
25
25
#[ cfg( not( feature = "parallel" ) ) ]
26
26
mod rayon;
27
27
28
- use crate :: atomicmin:: AtomicMin ;
29
- use crate :: evaluate:: Evaluator ;
30
- use crate :: headers:: * ;
31
- use crate :: png:: PngData ;
32
- use crate :: png:: PngImage ;
33
- use crate :: reduction:: * ;
28
+ use std:: {
29
+ borrow:: Cow ,
30
+ fs:: { File , Metadata } ,
31
+ io:: { stdin, stdout, BufWriter , Read , Write } ,
32
+ path:: Path ,
33
+ sync:: {
34
+ atomic:: { AtomicBool , Ordering } ,
35
+ Arc ,
36
+ } ,
37
+ time:: { Duration , Instant } ,
38
+ } ;
39
+
40
+ pub use indexmap:: { indexset, IndexSet } ;
34
41
use log:: { debug, info, trace, warn} ;
35
42
use rayon:: prelude:: * ;
36
- use std:: borrow:: Cow ;
37
- use std:: fs:: { File , Metadata } ;
38
- use std:: io:: { stdin, stdout, BufWriter , Read , Write } ;
39
- use std:: path:: Path ;
40
- use std:: sync:: atomic:: { AtomicBool , Ordering } ;
41
- use std:: sync:: Arc ;
42
- use std:: time:: { Duration , Instant } ;
43
-
44
- pub use crate :: colors:: { BitDepth , ColorType } ;
45
- pub use crate :: deflate:: Deflaters ;
46
- pub use crate :: error:: PngError ;
47
- pub use crate :: filters:: RowFilter ;
48
- pub use crate :: headers:: StripChunks ;
49
- pub use crate :: interlace:: Interlacing ;
50
- pub use crate :: options:: { InFile , Options , OutFile } ;
51
- pub use indexmap:: { indexset, IndexSet } ;
52
43
pub use rgb:: { RGB16 , RGBA8 } ;
53
44
45
+ use crate :: {
46
+ atomicmin:: AtomicMin ,
47
+ evaluate:: Evaluator ,
48
+ headers:: * ,
49
+ png:: { PngData , PngImage } ,
50
+ reduction:: * ,
51
+ } ;
52
+ pub use crate :: {
53
+ colors:: { BitDepth , ColorType } ,
54
+ deflate:: Deflaters ,
55
+ error:: PngError ,
56
+ filters:: RowFilter ,
57
+ headers:: StripChunks ,
58
+ interlace:: Interlacing ,
59
+ options:: { InFile , Options , OutFile } ,
60
+ } ;
61
+
54
62
mod atomicmin;
55
63
mod colors;
56
64
mod deflate;
@@ -68,12 +76,9 @@ mod sanity_checks;
68
76
/// Private to oxipng; don't use outside tests and benches
69
77
#[ doc( hidden) ]
70
78
pub mod internal_tests {
71
- pub use crate :: atomicmin:: * ;
72
- pub use crate :: deflate:: * ;
73
- pub use crate :: png:: * ;
74
- pub use crate :: reduction:: * ;
75
79
#[ cfg( feature = "sanity-checks" ) ]
76
80
pub use crate :: sanity_checks:: * ;
81
+ pub use crate :: { atomicmin:: * , deflate:: * , png:: * , reduction:: * } ;
77
82
}
78
83
79
84
pub type PngResult < T > = Result < T , PngError > ;
0 commit comments