From 7897f2390c32f6ea91e65fba898bdaeecefb6f3e Mon Sep 17 00:00:00 2001 From: Mossa Date: Fri, 15 Mar 2024 12:23:42 +0100 Subject: [PATCH] ci: feature flat for AltListImpl was missign --- extendr-api/tests/altrep_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extendr-api/tests/altrep_tests.rs b/extendr-api/tests/altrep_tests.rs index ad0d67ec02..4417a4bdc1 100644 --- a/extendr-api/tests/altrep_tests.rs +++ b/extendr-api/tests/altrep_tests.rs @@ -249,12 +249,14 @@ mod tests { #[extendr] impl VecUsize {} + #[cfg(use_r_altlist)] impl AltrepImpl for VecUsize { fn length(&self) -> usize { self.0.len() } } + #[cfg(use_r_altlist)] impl AltListImpl for VecUsize { fn elt(&self, index: usize) -> Robj { Self(vec![self.0[index]]).try_into().unwrap() @@ -297,12 +299,14 @@ mod tests_use_try_from { #[extendr(use_try_from = true)] impl VecUsize {} + #[cfg(use_r_altlist)] impl AltrepImpl for VecUsize { fn length(&self) -> usize { self.0.len() } } + #[cfg(use_r_altlist)] impl AltListImpl for VecUsize { fn elt(&self, index: usize) -> Robj { Self(vec![self.0[index]]).try_into().unwrap()