Alter type specification in client example

This commit is contained in:
asonix 2019-09-13 18:07:44 -05:00
parent 686e52213e
commit 9c24eb5566

View file

@ -14,12 +14,12 @@ fn main() {
Client::default() Client::default()
.post("http://127.0.0.1:8010/") .post("http://127.0.0.1:8010/")
.header("User-Agent", "Actix Web") .header("User-Agent", "Actix Web")
.authorization_signature_with_digest::<_, MyError, _, _, _>( .authorization_signature_with_digest(
&config, &config,
"my-key-id", "my-key-id",
&mut digest, &mut digest,
"Hewwo-owo", "Hewwo-owo",
|s| Ok(base64::encode(s)), |s| Ok(base64::encode(s)) as Result<_, MyError>,
) )
.unwrap() .unwrap()
.send() .send()