@@ -50,7 +50,7 @@ pub enum EncodingError {
50
50
}
51
51
52
52
impl fmt:: Display for EncodingError {
53
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
53
+ fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
54
54
match self {
55
55
EncodingError :: Io ( err) => err. fmt ( fmt) ,
56
56
EncodingError :: Format ( err) => err. fmt ( fmt) ,
@@ -177,12 +177,12 @@ impl<W: Write> Encoder<W> {
177
177
/// Writes a frame to the image.
178
178
///
179
179
/// Note: This function also writes a control extension if necessary.
180
- pub fn write_frame ( & mut self , frame : & Frame ) -> Result < ( ) , EncodingError > {
180
+ pub fn write_frame ( & mut self , frame : & Frame < ' _ > ) -> Result < ( ) , EncodingError > {
181
181
self . write_frame_header ( frame) ?;
182
182
self . write_image_block ( & frame. buffer )
183
183
}
184
184
185
- fn write_frame_header ( & mut self , frame : & Frame ) -> Result < ( ) , EncodingError > {
185
+ fn write_frame_header ( & mut self , frame : & Frame < ' _ > ) -> Result < ( ) , EncodingError > {
186
186
// TODO commented off to pass test in lib.rs
187
187
//if frame.delay > 0 || frame.transparent.is_some() {
188
188
self . write_extension ( ExtensionData :: new_control_ext (
@@ -321,7 +321,7 @@ impl<W: Write> Encoder<W> {
321
321
/// from [`Frame::make_lzw_pre_encoded`].
322
322
///
323
323
/// Note: This function also writes a control extension if necessary.
324
- pub fn write_lzw_pre_encoded_frame ( & mut self , frame : & Frame ) -> Result < ( ) , EncodingError > {
324
+ pub fn write_lzw_pre_encoded_frame ( & mut self , frame : & Frame < ' _ > ) -> Result < ( ) , EncodingError > {
325
325
// empty data is allowed
326
326
if let Some ( & min_code_size) = frame. buffer . get ( 0 ) {
327
327
if min_code_size > 11 || min_code_size < 2 {
0 commit comments