File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1414//! // Now you can use the image crate as normal
1515//! let img = image::open("path/to/image.pcx").unwrap();
1616//! ```
17- use image:: Limits ;
17+
18+ #![ forbid( unsafe_code) ]
1819
1920#[ cfg( feature = "pcx" ) ]
2021pub mod pcx;
@@ -44,7 +45,7 @@ pub fn register() {
4445 Box :: new ( |r| {
4546 Ok ( Box :: new ( ora:: OpenRasterDecoder :: with_limits (
4647 r,
47- Limits :: no_limits ( ) ,
48+ image :: Limits :: no_limits ( ) ,
4849 ) ?) )
4950 } ) ,
5051 ) ;
Original file line number Diff line number Diff line change 99//! # Related Links
1010//! * <https://en.wikipedia.org/wiki/OpenRaster> - The OpenRaster format on Wikipedia
1111//! * <https://www.openraster.org/> - OpenRaster specification
12- #! [ forbid ( unsafe_code ) ]
12+
1313use image:: codecs:: png:: PngDecoder ;
1414use image:: error:: { DecodingError , ImageFormatHint , UnsupportedError } ;
1515use image:: metadata:: Orientation ;
Original file line number Diff line number Diff line change 88//! # Related Links
99//! * <https://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html#Manipulating_Bitmaps> - The XBM format specification
1010//! * <https://en.wikipedia.org/wiki/X_BitMap> - The XBM format on wikipedia
11- #![ forbid( unsafe_code) ]
1211
1312use std:: fmt;
1413use std:: io:: { BufRead , Bytes } ;
Original file line number Diff line number Diff line change 4646//! * <https://gitlab.freedesktop.org/xorg/app/rgb/raw/master/rgb.txt> - X color names
4747//! * <https://www.x.org/wiki/X11R4/#index10h4> - Introduction of modern X11 color name table
4848//! * <https://web.archive.org/web/20070808230118/http://koala.ilog.fr/ftp/pub/xpm/> - more historical XPM material
49- #![ forbid( unsafe_code) ]
5049
5150mod x11r6colors;
5251
You can’t perform that action at this time.
0 commit comments