Skip to content

Commit c27f459

Browse files
authored
Fixes two compliation warnings (#2968)
Signed-off-by: Tao He <[email protected]>
1 parent bb1921e commit c27f459

File tree

2 files changed

+2
-2
lines changed
  • interactive_engine/executor

2 files changed

+2
-2
lines changed

interactive_engine/executor/engine/pegasus/pegasus/src/communication/buffer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl<D: Data> BufSlotPtr<D> {
118118
fn destroy(&mut self) {
119119
unsafe {
120120
let ptr = self.ptr;
121-
Box::from_raw(ptr.as_ptr());
121+
drop(Box::from_raw(ptr.as_ptr()));
122122
}
123123
}
124124
}

interactive_engine/executor/store/exp_store/src/graph_db/csr_topo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl<I: IndexType> MutEdgeVec<I> {
4444
let mut num_edges = 0;
4545
// will be sorted via label
4646
for label in adj.keys().cloned().sorted() {
47-
for vec in adj.get_mut(&label) {
47+
if let Some(vec) = adj.get_mut(&label) {
4848
vec.sort();
4949
self.offsets[node]
5050
.inner

0 commit comments

Comments
 (0)