From dad890b960ce558feac5e4bce0bbaf6d58d55323 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 31 Dec 2023 15:27:28 +0900 Subject: [PATCH] operation: make parent_ids() return slice instead of Vec reference --- lib/src/operation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/operation.rs b/lib/src/operation.rs index 510db0b97..d88446cb0 100644 --- a/lib/src/operation.rs +++ b/lib/src/operation.rs @@ -76,7 +76,7 @@ impl Operation { &self.id } - pub fn parent_ids(&self) -> &Vec { + pub fn parent_ids(&self) -> &[OperationId] { &self.data.parents }