Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuguzT committed Aug 19, 2022
1 parent 848e5bf commit 149b95f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/map.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::hash_map::{RandomState, Entry};
use std::collections::hash_map::{Entry, RandomState};
use std::collections::HashMap;
use std::hash::{BuildHasher, Hash};

Expand Down Expand Up @@ -66,9 +66,9 @@ where
let r#ref = ref_kind.into_ref();
occupied.insert(Some(RefKind::Ref(r#ref)));
Some(r#ref)
},
}
}
},
}
Entry::Vacant(_) => None,
}
}
Expand All @@ -89,9 +89,9 @@ where
let ref_kind = occupied.insert(None).expect(BORROWED_MUTABLY);
let r#mut = ref_kind.into_mut().expect(BORROWED_IMMUTABLY);
Some(r#mut)
},
}
}
},
}
Entry::Vacant(_) => None,
}
}
Expand Down

0 comments on commit 149b95f

Please sign in to comment.