From c6dd3235138f27ae1554c862d422b1c01e15efc4 Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 2 Mar 2024 08:59:09 +0100 Subject: [PATCH] `cargo fmt` --- extendr-api/src/robj/try_from_robj.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/extendr-api/src/robj/try_from_robj.rs b/extendr-api/src/robj/try_from_robj.rs index 63062d6b89..83ff5bdf0f 100644 --- a/extendr-api/src/robj/try_from_robj.rs +++ b/extendr-api/src/robj/try_from_robj.rs @@ -433,11 +433,10 @@ impl_try_from_robj_ref!( &str String ); - // region: mutable // Convert `TryFrom<&mut Robj>` into `TryFrom`. -// TODO: Try with GATS now? +// TODO: Try with GATS now? // Sadly, we are unable to make a blanket // conversion using `GetSexp` with the current version of Rust. @@ -446,8 +445,7 @@ impl_try_from_robj_ref!( // specifically expects owned, ref, and ref mut together with type. // // ($t:ty) (mut $t:ty) (&mut $t:ty) (&$t:ty) -// - +// macro_rules! impl_try_from_robj_mut { ($($type : ty)*) => { @@ -483,7 +481,6 @@ macro_rules! impl_try_from_robj_mut { } } - impl TryFrom<&mut Robj> for &mut str { type Error = Error; @@ -583,7 +580,6 @@ impl TryFrom<&mut Robj> for &mut [f64] { } } - impl_try_from_robj_mut!( &mut [Rint] &mut [Rfloat] &mut [Rbool] &mut [Rcplx] &mut [u8] &mut [i32] &mut [f64] &mut str