Skip to content

Commit

Permalink
chore(clippy): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sassman committed May 7, 2021
1 parent fb9f26f commit ccbfe4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions stegano-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "stegano-cli"
description = "Hiding secret data with steganography in PNG images and WAV audio files"
version = "0.4.8"
version = "0.4.9"
authors = ["Sven Assmann <[email protected]>"]
edition = "2018"
license = "GPL-3.0-only"
Expand All @@ -17,7 +17,7 @@ travis-ci = { repository = "steganogram/stegano-rs", branch = "main" }
maintenance = { status = "actively-developed" }

[dependencies]
stegano-core = { path = "../stegano-core", version = "0.4.8" }
stegano-core = { path = "../stegano-core", version = "0.4.9" }
#stegano-core = "0.4.5"
clap = "2.33"

Expand Down
2 changes: 1 addition & 1 deletion stegano-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "stegano-core"
description = "Steganography core library for stegano-cli. Supports hiding data in PNG images via LSB Encoding."
version = "0.4.8"
version = "0.4.9"
authors = ["Sven Assmann <[email protected]>"]
edition = "2018"
license = "GPL-3.0-only"
Expand Down
5 changes: 1 addition & 4 deletions stegano-core/src/bit_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ where
Err(_) => None,
};
}
return match self.byte {
None => None,
Some(b) => Some((b >> bit) & 1),
};
return self.byte.map(|b| (b >> bit) & 1);
}
}
}

0 comments on commit ccbfe4d

Please sign in to comment.