Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Mar 2, 2024
1 parent 0e4fe7f commit c6dd323
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions extendr-api/src/robj/try_from_robj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,10 @@ impl_try_from_robj_ref!(
&str String
);


// region: mutable

// Convert `TryFrom<&mut Robj>` into `TryFrom<Robj>`.
// 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.

Expand All @@ -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)*) => {
Expand Down Expand Up @@ -483,7 +481,6 @@ macro_rules! impl_try_from_robj_mut {
}
}


impl TryFrom<&mut Robj> for &mut str {
type Error = Error;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c6dd323

Please sign in to comment.