Skip to content

Commit 02ac008

Browse files
authored
small clippy changes - partialeq_to_none (#6)
1 parent 3a631ac commit 02ac008

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dmi"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
license = "MIT"
66
description = "DMI library written in Rust. Provides helpers to manipulate and produce DMI format files."

src/dmi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
));

src/dmi/icon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)