Skip to content

Commit

Permalink
operation: make parent_ids() return slice instead of Vec reference
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Jan 1, 2024
1 parent 5ff9376 commit dad890b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl Operation {
&self.id
}

pub fn parent_ids(&self) -> &Vec<OperationId> {
pub fn parent_ids(&self) -> &[OperationId] {
&self.data.parents
}

Expand Down

0 comments on commit dad890b

Please sign in to comment.