Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Nov 1, 2021
1 parent d3563ba commit 2c20a4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- "*"
tags:
- "*"
pull_request:
branches:
- "*"

jobs:
build:
Expand Down
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.0.2"
version = "1.0.3"
authors = ["baoyachi <[email protected]>"]
edition = "2018"
description = "sha256 crypto digest"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn digest_bytes(input: &[u8]) -> String {
///
pub fn digest_file<P: AsRef<Path>>(path: P) -> Result<String, io::Error> {
let bytes = fs::read(path)?;
Ok(__digest__(&bytes()))
Ok(__digest__(&bytes))
}

fn __digest__(data: &[u8]) -> String {
Expand Down

0 comments on commit 2c20a4a

Please sign in to comment.