diff --git a/promise/src/lib.rs b/promise/src/lib.rs index 07243bb35..7ff0b72e9 100644 --- a/promise/src/lib.rs +++ b/promise/src/lib.rs @@ -313,7 +313,7 @@ mod test { let f: Future = p .get_future() .unwrap() - .map(|value| Err(err_msg("boo"))) + .map(|_value| Err(err_msg("boo"))) .map_err(|err| Err(format_err!("whoops: {}", err))); p.ok(1); assert_eq!(format!("{}", f.wait().unwrap_err()), "whoops: boo");