`DGraph::with_path` should take the ownership of `self` to avoid cloning.
HaoYang670 opened this issue · comments
Lines 71 to 89 in 54f037c
It is better to let with_path
consume self
to avoid coping.
pub fn with_path(mut self, path: Vec<u8>) -> Self {
...
}