mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-02 09:28:40 +00:00
commit: make predecessor_ids() return slice instead of cloned vec
This commit is contained in:
parent
3a6c6d8bf4
commit
c94f54689d
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ impl Commit {
|
||||||
parents
|
parents
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn predecessor_ids(&self) -> Vec<CommitId> {
|
pub fn predecessor_ids(&self) -> &[CommitId] {
|
||||||
self.data.predecessors.clone()
|
&self.data.predecessors
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn predecessors(&self) -> Vec<Commit> {
|
pub fn predecessors(&self) -> Vec<Commit> {
|
||||||
|
|
Loading…
Reference in a new issue