From cce1a03f76a9f53849fbde18898ff6c8faa04051 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Tue, 12 Nov 2019 14:41:40 +0000 Subject: [PATCH] unwrap options in asert_eq --- src/installed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installed.rs b/src/installed.rs index dd242ce..31c967a 100644 --- a/src/installed.rs +++ b/src/installed.rs @@ -669,7 +669,7 @@ mod tests { .token(vec!["https://googleapis.com/some/scope"]) .and_then(|tok| { assert_eq!("accesstoken", tok.access_token); - assert_eq!("refreshtoken", tok.refresh_token); + assert_eq!("refreshtoken", tok.refresh_token.unwrap()); assert_eq!("Bearer", tok.token_type); Ok(()) }); @@ -695,7 +695,7 @@ mod tests { .token(vec!["https://googleapis.com/some/scope"]) .and_then(|tok| { assert_eq!("accesstoken", tok.access_token); - assert_eq!("refreshtoken", tok.refresh_token); + assert_eq!("refreshtoken", tok.refresh_token.unwrap()); assert_eq!("Bearer", tok.token_type); Ok(()) });