Skip to content

Commit

Permalink
revoke deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Jul 20, 2023
1 parent be6ceae commit 22c8e05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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 = "sha256"
version = "1.2.1"
version = "1.2.2"
authors = ["baoyachi <liaoymxsdl@gmail.com>"]
edition = "2018"
description = "sha256 crypto digest"
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ pub fn digest<D: Sha256Digest>(input: D) -> String {
/// let val = try_digest(input).unwrap();
/// assert_eq!(val,"433855b7d2b96c23a6f60e70c655eb4305e8806b682a9596a200642f947259b1")
/// ```
#[deprecated(
since = "1.2.0",
note = "Use new function `try_async_digest()` instead"
)]
pub fn try_digest<D: TrySha256Digest>(input: D) -> Result<String, D::Error> {
input.digest()
}
Expand Down

0 comments on commit 22c8e05

Please sign in to comment.