Skip to content

Commit

Permalink
Fixes two compliation warnings (#2968)
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Jul 4, 2023
1 parent bb1921e commit c27f459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -118,7 +118,7 @@ impl<D: Data> BufSlotPtr<D> {
fn destroy(&mut self) {
unsafe {
let ptr = self.ptr;
Box::from_raw(ptr.as_ptr());
drop(Box::from_raw(ptr.as_ptr()));
}
}
}
Expand Down
Expand Up @@ -44,7 +44,7 @@ impl<I: IndexType> MutEdgeVec<I> {
let mut num_edges = 0;
// will be sorted via label
for label in adj.keys().cloned().sorted() {
for vec in adj.get_mut(&label) {
if let Some(vec) = adj.get_mut(&label) {
vec.sort();
self.offsets[node]
.inner
Expand Down

0 comments on commit c27f459

Please sign in to comment.