File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " dmi"
3- version = " 0.2.0 "
3+ version = " 0.2.1 "
44edition = " 2021"
55license = " MIT"
66description = " DMI library written in Rust. Provides helpers to manipulate and produce DMI format files."
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ impl RawDmi {
9393 _ => other_chunks. push ( raw_chunk) ,
9494 }
9595 }
96- if chunk_ihdr == None {
96+ if chunk_ihdr. is_none ( ) {
9797 return Err ( error:: DmiError :: Generic (
9898 "Failed to load DMI. Buffer end reached without finding an IHDR chunk." . to_string ( ) ,
9999 ) ) ;
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ impl Icon {
229229 } ;
230230 }
231231
232- if dirs == None || frames == None {
232+ if dirs. is_none ( ) || frames. is_none ( ) {
233233 return Err ( error:: DmiError :: Generic ( format ! (
234234 "Error loading icon: state lacks essential settings. dirs: {:#?}. frames: {:#?}." ,
235235 dirs, frames
You can’t perform that action at this time.
0 commit comments