From 623bbd0a713e90eba8ea4226ebda1281201aeedf Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 12 Oct 2019 22:36:09 +0100 Subject: [PATCH] annotations() returns slice rather than Vec ref --- implementations/rust/src/value/value.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/implementations/rust/src/value/value.rs b/implementations/rust/src/value/value.rs index 11dd4a4..e4fb627 100644 --- a/implementations/rust/src/value/value.rs +++ b/implementations/rust/src/value/value.rs @@ -20,7 +20,7 @@ pub trait NestedValue: Sized + Debug + Clone + Eq + Hash + Ord { fn boxwrap(self) -> Self::BoxType; fn boxunwrap(b: &Self::BoxType) -> &Self; - fn annotations(&self) -> &Vec; + fn annotations(&self) -> &[Self]; fn value(&self) -> &Value; fn value_owned(self) -> Value; @@ -648,7 +648,7 @@ impl NestedValue for PlainValue { &**b } - fn annotations(&self) -> &Vec { + fn annotations(&self) -> &[Self] { &(self.0).0 } @@ -705,7 +705,7 @@ impl NestedValue for RcValue { b } - fn annotations(&self) -> &Vec { + fn annotations(&self) -> &[Self] { &(self.0).0 } @@ -768,7 +768,7 @@ impl NestedValue for ArcValue { b } - fn annotations(&self) -> &Vec { + fn annotations(&self) -> &[Self] { &(self.0).0 }