Skip to content

Commit

Permalink
chore: bump rust toolchain to 1.63 (MystenLabs/mysten-infra#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker authored and sadhansood committed Nov 9, 2022
1 parent fbf74b0 commit 961c0c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mysten-infra/crates/rccheck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub trait Certifiable {
/// let pskset = PskSet::from_der(&spkis.iter().map(|spki| &spki[..]).collect::<Vec<_>>()[..]).unwrap();
/// ```
///
#[derive(Debug, PartialEq, Serialize, Deserialize)]
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PskSet {
pub spki_set: BTreeSet<Psk>,
}
Expand Down
6 changes: 3 additions & 3 deletions mysten-infra/crates/typed-store/src/tests/store_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async fn iter_successfully() {
// Iter through the keys
let output = store.iter(None).await;
for (k, v) in &key_values {
let v1 = output.get(&*k).unwrap();
let v1 = output.get(k).unwrap();
assert_eq!(v1.first(), v.first());
assert_eq!(v1.last(), v.last());
}
Expand Down Expand Up @@ -193,11 +193,11 @@ async fn iter_and_filter_successfully() {
for (k, v) in &key_values {
let int = u16::from_le_bytes(k[..2].try_into().unwrap());
if int % 2 == 0 {
let v1 = output.get(&*k).unwrap();
let v1 = output.get(k).unwrap();
assert_eq!(v1.first(), v.first());
assert_eq!(v1.last(), v.last());
} else {
assert!(output.get(&*k).is_none());
assert!(output.get(k).is_none());
}
}
assert_eq!(output.len(), key_values.len());
Expand Down

0 comments on commit 961c0c5

Please sign in to comment.