Fix compilation error
authorequal-l2 <eng.equall2@gmail.com>
Wed, 27 Sep 2017 13:46:06 +0000 (22:46 +0900)
committerequal-l2 <eng.equall2@gmail.com>
Wed, 27 Sep 2017 13:46:06 +0000 (22:46 +0900)
src/cargo/util/sha256.rs

index 97a8a9fb14a9b13e4549cabd6d7b68787c0f695e..c805d7f1a2b0f228946540cab4ed5b36eeb5b612 100644 (file)
@@ -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)
     }