Skip to content

Commit

Permalink
cargo +nightly check --tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Feb 29, 2024
1 parent 556f850 commit 5cf2ed5
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 21 deletions.
1 change: 0 additions & 1 deletion extendr-api/src/ownership.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ impl Ownership {
mod test {
use super::*;
use crate::*;
use libR_sys::{Rf_ScalarInteger, Rf_protect, Rf_unprotect};

#[test]
fn basic_test() {
Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/robj/into_robj.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::*;
use crate::scalar::Scalar;
use crate::single_threaded;

mod repeat_into_robj;

Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/robj/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::*;

use crate::scalar::{Rbool, Rfloat, Rint};
use std::collections::HashMap;
use std::iter::IntoIterator;
use std::ops::{Range, RangeInclusive};

// deprecated
Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/scalar/rbool.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::scalar::macros::*;
use crate::scalar::Scalar;
use crate::*;
use std::convert::TryFrom;

/// `Rbool` is a wrapper for `i32` in the context of an R's logical vector.
///
Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/scalar/rfloat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::prelude::{Rint, Scalar};
use crate::scalar::macros::*;
use crate::*;
use std::cmp::Ordering::*;
use std::convert::TryFrom;
use std::ops::{Add, Div, Mul, Neg, Sub};
use std::ops::{AddAssign, DivAssign, MulAssign, SubAssign};

Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/scalar/rint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::scalar::macros::*;
use crate::scalar::Scalar;
use crate::*;
use std::cmp::Ordering::*;
use std::convert::TryFrom;
use std::ops::{Add, Div, Mul, Neg, Not, Sub};
use std::ops::{AddAssign, DivAssign, MulAssign, SubAssign};

Expand Down
2 changes: 1 addition & 1 deletion extendr-api/src/wrapper/altrep.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use prelude::{Rbool, Rcplx, Rfloat, Rint, Scalar};
use prelude::{Rcplx, Rfloat, Rint, Scalar};

use super::*;

Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/wrapper/complexes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::scalar::{c64, Rcplx};
use super::*;
use std::iter::FromIterator;

/// An obscure `NA`-aware wrapper for R's complex vectors.
/// Can be used to iterate over vectors obtained from R
Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/wrapper/doubles.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::scalar::{Rfloat, Scalar};
use super::*;
use std::iter::FromIterator;

/// An obscure `NA`-aware wrapper for R's double vectors.
/// Can be used to iterate over vectors obtained from R
Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/wrapper/integers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::scalar::{Rint, Scalar};
use super::*;
use std::iter::FromIterator;

/// An obscure `NA`-aware wrapper for R's integer vectors.
/// Can be used to iterate over vectors obtained from R
Expand Down
3 changes: 0 additions & 3 deletions extendr-api/src/wrapper/list.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use crate::robj::Attributes;
use std::iter::FromIterator;

use super::*;

#[derive(PartialEq, Clone)]
Expand Down
3 changes: 1 addition & 2 deletions extendr-api/src/wrapper/logicals.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::scalar::{Rbool, Scalar};
use super::scalar::Scalar;
use super::*;
use std::iter::FromIterator;

/// An obscure `NA`-aware wrapper for R's logical vectors.
/// Can be used to iterate over vectors obtained from R
Expand Down
1 change: 0 additions & 1 deletion extendr-api/src/wrapper/matrix.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Wrappers for matrices with deferred arithmetic.
use super::*;
use crate::robj::GetSexp;
use crate::scalar::Scalar;
use std::ops::{Index, IndexMut};

Expand Down
2 changes: 1 addition & 1 deletion extendr-api/src/wrapper/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Wrappers are lightweight proxies for references to R datatypes.
//! They do not contain an Robj (see array.rs for an example of this).
use crate::robj::{GetSexp, Rinternals};
use crate::robj::Rinternals;
use crate::*;
use libR_sys::*;

Expand Down
3 changes: 0 additions & 3 deletions extendr-api/src/wrapper/strings.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::convert::From;
use std::iter::FromIterator;

use super::*;

#[derive(PartialEq, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion extendr-macros/src/wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn make_function_wrappers(
Ok(_self_robj)
)
};

// TODO: the unsafe in here is unnecessary
wrappers.push(parse_quote!(
#[no_mangle]
#[allow(non_snake_case, clippy::not_unsafe_ptr_arg_deref)]
Expand Down

0 comments on commit 5cf2ed5

Please sign in to comment.