diff --git a/contracts/external/cw20-token/src/contract.rs b/contracts/external/cw20-token/src/contract.rs index cbfa09f1f..6bc135bb7 100644 --- a/contracts/external/cw20-token/src/contract.rs +++ b/contracts/external/cw20-token/src/contract.rs @@ -1045,7 +1045,7 @@ mod tests { assert!(res.is_ok()); let query_minter_msg = QueryMsg::Minter {}; let res = query(deps.as_ref(), env, query_minter_msg); - let mint: MinterResponse = from_json(&res.unwrap()).unwrap(); + let mint: MinterResponse = from_json(res.unwrap()).unwrap(); // Minter cannot update cap. assert!(mint.cap == cap); @@ -1095,7 +1095,7 @@ mod tests { assert!(res.is_ok()); let query_minter_msg = QueryMsg::Minter {}; let res = query(deps.as_ref(), env, query_minter_msg); - let mint: Option = from_json(&res.unwrap()).unwrap(); + let mint: Option = from_json(res.unwrap()).unwrap(); // Check that mint information was removed. assert_eq!(mint, None); @@ -1212,7 +1212,7 @@ mod tests { QueryMsg::Balance { address: addr1 }, ) .unwrap(); - let loaded: BalanceResponse = from_json(&data).unwrap(); + let loaded: BalanceResponse = from_json(data).unwrap(); assert_eq!(loaded.balance, amount1); // check balance query (empty) @@ -1224,7 +1224,7 @@ mod tests { }, ) .unwrap(); - let loaded: BalanceResponse = from_json(&data).unwrap(); + let loaded: BalanceResponse = from_json(data).unwrap(); assert_eq!(loaded.balance, Uint128::zero()); } diff --git a/contracts/external/cw20-token/src/enumerable.rs b/contracts/external/cw20-token/src/enumerable.rs index 69eeaa370..76fb86c92 100644 --- a/contracts/external/cw20-token/src/enumerable.rs +++ b/contracts/external/cw20-token/src/enumerable.rs @@ -220,7 +220,7 @@ mod tests { limit: None, }; let allowances: AllSpenderAllowancesResponse = - from_json(&query(deps.as_ref(), env.clone(), msg).unwrap()).unwrap(); + from_json(query(deps.as_ref(), env.clone(), msg).unwrap()).unwrap(); assert_eq!(allowances.allowances.len(), 2); // one is owner1 (order of CanonicalAddr uncorrelated with String) @@ -230,7 +230,7 @@ mod tests { limit: Some(1), }; let allowances: AllSpenderAllowancesResponse = - from_json(&query(deps.as_ref(), env.clone(), msg).unwrap()).unwrap(); + from_json(query(deps.as_ref(), env.clone(), msg).unwrap()).unwrap(); assert_eq!(allowances.allowances.len(), 1); let allow = &allowances.allowances[0]; assert_eq!(&allow.owner, &owner1); @@ -244,7 +244,7 @@ mod tests { limit: Some(10000), }; let allowances: AllSpenderAllowancesResponse = - from_json(&query(deps.as_ref(), env, msg).unwrap()).unwrap(); + from_json(query(deps.as_ref(), env, msg).unwrap()).unwrap(); assert_eq!(allowances.allowances.len(), 1); let allow = &allowances.allowances[0]; assert_eq!(&allow.owner, &owner2);