Skip to content

Commit

Permalink
Changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
echevrier committed Nov 9, 2021
1 parent 52f6e02 commit ee9b8fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions app-libs/exchange-oracle/src/coingecko.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ mod tests {
let url = CoinGeckoClient::base_url().unwrap();
let mut coingecko_client = CoinGeckoClient::new(url);
let result = coingecko_client.get_exchange_rate("dot", "usd");
let error = result.unwrap_err();
if let Error::NoValidData = error {
} else {
assert!(false, "Invalid error kind: {:?}", error);
}
assert_matches!(result, Err(Error::NoValidData));
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions app-libs/exchange-oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(test, feature(assert_matches))]

#[cfg(all(feature = "std", feature = "sgx"))]
compile_error!("feature \"std\" and feature \"sgx\" cannot be enabled at the same time");
Expand Down

0 comments on commit ee9b8fc

Please sign in to comment.