projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4acb698
)
Fix compilation error
author
equal-l2
<eng.equall2@gmail.com>
Wed, 27 Sep 2017 13:46:06 +0000
(22:46 +0900)
committer
equal-l2
<eng.equall2@gmail.com>
Wed, 27 Sep 2017 13:46:06 +0000
(22:46 +0900)
src/cargo/util/sha256.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/sha256.rs
b/src/cargo/util/sha256.rs
index 97a8a9fb14a9b13e4549cabd6d7b68787c0f695e..c805d7f1a2b0f228946540cab4ed5b36eeb5b612 100644
(file)
--- a/
src/cargo/util/sha256.rs
+++ b/
src/cargo/util/sha256.rs
@@
-1,12
+1,12
@@
-pub use self::Sha256;
extern crate crypto_hash;
-use crypto_hash::{Hasher,Algorithm};
+use self::crypto_hash::{Hasher,Algorithm};
+use std::io::Write;
pub struct Sha256(Hasher);
impl Sha256 {
pub fn new() -> Sha256 {
- let hasher = Hasher::new(Algorithm::
sha256()
);
+ let hasher = Hasher::new(Algorithm::
SHA256
);
Sha256(hasher)
}