From 412594bba906c8ef7a7396cd453afb4663a78626 Mon Sep 17 00:00:00 2001 From: Mossa Date: Sun, 17 Mar 2024 01:35:57 +0100 Subject: [PATCH] fourth I guess? ?Sized --- extendr-api/src/robj/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extendr-api/src/robj/mod.rs b/extendr-api/src/robj/mod.rs index dae6cacca4..e19d46e526 100644 --- a/extendr-api/src/robj/mod.rs +++ b/extendr-api/src/robj/mod.rs @@ -35,10 +35,10 @@ pub use operators::*; pub use rinternals::Rinternals; #[derive(Debug)] -pub struct RobjRef<'a, T>(pub &'a T); +pub struct RobjRef<'a, T: ?Sized>(pub &'a T); #[derive(Debug)] -pub struct RobjMut<'a, T>(pub &'a mut T); +pub struct RobjMut<'a, T: ?Sized>(pub &'a mut T); /// Wrapper for an R S-expression pointer (SEXP). /// @@ -806,7 +806,7 @@ where /// /// [`SEXP`]: libR_sys::SEXP /// Marker for the R object modes / types represented as a value. -trait SexpAsPtr: Sized { +pub(crate) trait SexpAsPtr: Sized { /// See [`Rtype`] for reference. const R_TYPE_ID: u32; /// Corresponding rust type to the type in C (in R's C-API)