get rid of printlns

This commit is contained in:
Michael 2018-08-16 01:45:22 +00:00 committed by Michael Zhang
parent 5a322eca5f
commit c5b6f4e993
No known key found for this signature in database
GPG key ID: A1B65B603268116B

View file

@ -46,7 +46,6 @@ fn main() -> Result<(), Error> {
let mut payload = String::new();
io::stdin().read_to_string(&mut payload)?;
let payload: Payload = serde_json::from_str(&payload)?;
println!("secret = {}", config.secret);
let secret = GenericArray::from_iter(config.secret.bytes());
let mut mac = Hmac::<Sha1>::new(&secret);
@ -58,7 +57,6 @@ fn main() -> Result<(), Error> {
.map(|b| format!("{:02x}", b))
.collect::<Vec<_>>()
.join("");
println!("sig = {}", signature);
let auth = payload
.headers