message: Adapt queue contract to interface range change
diff: @@ -82,7 +82,7 @@ fn enqueue<S: Storage, A: Api, Q: Querier>(
  // find the last element in the queue and extract key
  let last_key = deps
  .storage
  - .range(None, None, Order::Descending)
  + .range(None, None, Order::Descending)?
  .next()
  .map(|(k, _)| k);
  @@ -102,7 +102,7 @@ fn dequeue<S: Storage, A: Api, Q: Querier>(
  _env: Env,
  ) -> Result<HandleResponse> {
  // find the first element in the queue and extract value
  - let first = deps.storage.range(None, None, Order::Ascending).next();
  + let first = deps.storage.range(None, None, Order::Ascending)?.next();
  let mut res = HandleResponse::default();
  if let Some((k, v)) = first {
  @@ -127,14 +127,14 @@ pub fn query<S: Storage, A: Api, Q: Querier>(
  }
  fn query_count<S: Storage, A: Api, Q: Querier>(deps: &Extern<S, A, Q>) -> Result<QueryResponse> {
  - let count = deps.storage.range(None, None, Order::Ascending).count() as u32;
  + let count = deps.storage.range(None, None, Order::Ascending)?.count() as u32;
  Ok(Binary(to_vec(&CountResponse { count })?))
  }
  fn query_sum<S: Storage, A: Api, Q: Querier>(deps: &Extern<S, A, Q>) -> Result<QueryResponse> {
  let values: Result<Vec<Item>> = deps
  .storage
  - .range(None, None, Order::Ascending)
  + .range(None, None, Order::Ascending)?
  .map(|(_, v)| from_slice(&v))
  .collect();
  let sum = values?.iter().fold(0, |s, v| s + v.value);
  @@ -146,7 +146,7 @@ fn query_reducer<S: Storage, A: Api, Q: Querier>(deps: &Extern<S, A, Q>) -> Resu
  // val: Result<Item>
  for val in deps
  .storage
  - .range(None, None, Order::Ascending)
  + .range(None, None, Order::Ascending)?
  .map(|(_, v)| from_slice::<Item>(&v))
  {
  // this returns error on parse error
  @@ -154,7 +154,7 @@ fn query_reducer<S: Storage, A: Api, Q: Querier>(deps: &Extern<S, A, Q>) -> Resu
  // now, let's do second iterator
  let sum: i32 = deps
  .storage
  - .range(None, None, Order::Ascending)
  + .range(None, None, Order::Ascending)?
  // get value. ignore parse errors, just count as 0
  .map(|(_, v)| from_slice::<Item>(&v).map(|v| v.value).unwrap_or(0))
  .filter(|v| *v > my_val)
  