ok/jj
1
0
Fork 0
forked from mirrors/jj

operation: make parent_ids() return slice instead of Vec reference

This commit is contained in:
Yuya Nishihara 2023-12-31 15:27:28 +09:00
parent 5ff9376466
commit dad890b960

View file

@ -76,7 +76,7 @@ impl Operation {
&self.id
}
pub fn parent_ids(&self) -> &Vec<OperationId> {
pub fn parent_ids(&self) -> &[OperationId] {
&self.data.parents
}