Skip to content

Commit

Permalink
Shutup warning on nightly (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 committed Apr 9, 2024
1 parent 49a7d38 commit f7b4b57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
3 changes: 0 additions & 3 deletions rstest_macros/src/parse/rstest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ mod test {

mod no_cases {
use super::{assert_eq, *};
use crate::parse::{Attribute, Attributes};

#[test]
fn happy_path() {
Expand Down Expand Up @@ -544,7 +543,6 @@ mod test {

mod parametrize_cases {
use super::{assert_eq, *};
use std::iter::FromIterator;

#[test]
fn one_simple_case_one_arg() {
Expand Down Expand Up @@ -803,7 +801,6 @@ mod test {
}

mod matrix_cases {
use crate::parse::Attribute;

use super::{assert_eq, *};

Expand Down
2 changes: 1 addition & 1 deletion rstest_macros/src/render/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mod should {
use rstest_test::{assert_in, assert_not_in};
use syn::{
parse::{Parse, ParseStream},
parse2, parse_str, ItemFn, ItemImpl, ItemStruct, Result,
parse2, parse_str, ItemImpl, ItemStruct, Result,
};

use crate::parse::{
Expand Down
10 changes: 3 additions & 7 deletions rstest_macros/src/render/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ impl Parse for TestsGroup {
}

trait QueryAttrs {
#[allow(dead_code)]
fn has_attr(&self, attr: &syn::Path) -> bool;
fn has_attr_that_ends_with(&self, attr: &syn::PathSegment) -> bool;
}
Expand Down Expand Up @@ -480,14 +481,12 @@ impl From<TokenStream> for TestsGroup {
}

mod cases_should {
use std::iter::FromIterator;

use rstest_test::{assert_in, assert_not_in};

use crate::parse::{
arguments::{ArgumentsInfo, FutureArg},
rstest::{RsTestData, RsTestInfo, RsTestItem},
testcase::TestCase,
rstest::RsTestItem,
};

use super::{assert_eq, *};
Expand Down Expand Up @@ -1025,10 +1024,7 @@ mod cases_should {
mod matrix_cases_should {
use rstest_test::{assert_in, assert_not_in};

use crate::parse::{
arguments::{ArgumentsInfo, FutureArg},
vlist::ValueList,
};
use crate::parse::arguments::{ArgumentsInfo, FutureArg};

/// Should test matrix tests render without take in account MatrixInfo to RsTestInfo
/// transformation
Expand Down
3 changes: 1 addition & 2 deletions rstest_macros/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
/// testing bolilerplate.
///
use std::borrow::Cow;
use std::iter::FromIterator;

pub(crate) use pretty_assertions::assert_eq;
use proc_macro2::TokenTree;
use quote::quote;
pub(crate) use rstest::{fixture, rstest};
use syn::{parse::Parse, parse2, parse_quote, parse_str, Error, Expr, Ident, ItemFn, Stmt};
use syn::{parse::Parse, parse2, parse_quote, parse_str, Error, Expr, Ident, Stmt};

use super::*;
use crate::parse::{
Expand Down

0 comments on commit f7b4b57

Please sign in to comment.