Skip to content

Commit

Permalink
small clippy changes - partialeq_to_none (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeWaka authored Feb 10, 2023
1 parent 3a631ac commit 02ac008
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dmi"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "MIT"
description = "DMI library written in Rust. Provides helpers to manipulate and produce DMI format files."
Expand Down
2 changes: 1 addition & 1 deletion src/dmi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl RawDmi {
_ => other_chunks.push(raw_chunk),
}
}
if chunk_ihdr == None {
if chunk_ihdr.is_none() {
return Err(error::DmiError::Generic(
"Failed to load DMI. Buffer end reached without finding an IHDR chunk.".to_string(),
));
Expand Down
2 changes: 1 addition & 1 deletion src/dmi/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl Icon {
};
}

if dirs == None || frames == None {
if dirs.is_none() || frames.is_none() {
return Err(error::DmiError::Generic(format!(
"Error loading icon: state lacks essential settings. dirs: {:#?}. frames: {:#?}.",
dirs, frames
Expand Down

0 comments on commit 02ac008

Please sign in to comment.