Add ne matcher #2684
ci.yml
on: pull_request
doc / nightly
36s
Matrix: clippy
Matrix: integration-test-latest-deps
Matrix: integration-test
Matrix: lint / ubuntu
Matrix: test-latest-deps
Matrix: test-no-default-features
Matrix: test
Annotations
14 warnings
|
this `impl` can be derived:
googletest/src/matcher_support/summarize_diff.rs#L310
warning: this `impl` can be derived
--> googletest/src/matcher_support/summarize_diff.rs:310:1
|
310 | / impl Default for Buffer<'_> {
311 | | fn default() -> Self {
312 | | Self::Empty
313 | | }
314 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
help: replace the manual implementation with a derive attribute and mark the default variant
|
249 + #[derive(Default)]
250 ~ enum Buffer<'a> {
251 ~ #[default]
252 ~ Empty,
|
|
|
unused import: `crate::matcher::MatcherResult`:
googletest/src/matchers/ne_matcher.rs#L60
warning: unused import: `crate::matcher::MatcherResult`
--> googletest/src/matchers/ne_matcher.rs:60:9
|
60 | use crate::matcher::MatcherResult;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
|
|
this `impl` can be derived:
googletest/src/matcher_support/summarize_diff.rs#L310
warning: this `impl` can be derived
--> googletest/src/matcher_support/summarize_diff.rs:310:1
|
310 | / impl Default for Buffer<'_> {
311 | | fn default() -> Self {
312 | | Self::Empty
313 | | }
314 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
help: replace the manual implementation with a derive attribute and mark the default variant
|
249 + #[derive(Default)]
250 ~ enum Buffer<'a> {
251 ~ #[default]
252 ~ Empty,
|
|
|
this `impl` can be derived:
googletest/src/matcher_support/summarize_diff.rs#L310
warning: this `impl` can be derived
--> googletest/src/matcher_support/summarize_diff.rs:310:1
|
310 | / impl Default for Buffer<'_> {
311 | | fn default() -> Self {
312 | | Self::Empty
313 | | }
314 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
help: replace the manual implementation with a derive attribute and mark the default variant
|
249 + #[derive(Default)]
250 | enum Buffer<'a> {
251 ~ #[default]
252 ~ Empty,
|
|
|
unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`:
googletest/src/matchers/all_matcher.rs#L77
warning: unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`
--> googletest/src/matchers/all_matcher.rs:77:13
|
77 | use $crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: googletest/src/matchers/unordered_elements_are_matcher.rs:448:13
|
448 | / ... all![
449 | | ... displays_as(contains_regex(
450 | | ... "Actual element \\(2, 2\\) at index [0-2] matched expected element `is a tuple whose values respectively match:\n is any...
451 | | ... )),
... |
457 | | ... ))
458 | | ... ]
| |_______- in this macro invocation
|
= note: this warning originates in the macro `all` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
unused import: `crate::matcher::MatcherResult`:
googletest/src/matchers/ne_matcher.rs#L60
warning: unused import: `crate::matcher::MatcherResult`
--> googletest/src/matchers/ne_matcher.rs:60:9
|
60 | use crate::matcher::MatcherResult;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`:
googletest/src/matchers/any_matcher.rs#L79
warning: unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`
--> googletest/src/matchers/any_matcher.rs:79:13
|
79 | use $crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
153 | verify_that!(42, any![1, 2, 42, gt(123)])
| ----------------------- in this macro invocation
|
= note: this warning originates in the macro `$crate::__any` which comes from the expansion of the macro `any` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`:
googletest/src/matchers/any_matcher.rs#L79
warning: unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`
--> googletest/src/matchers/any_matcher.rs:79:13
|
79 | use $crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
153 | verify_that!(42, any![1, 2, 42, gt(123)])
| ----------------------- in this macro invocation
|
= note: this warning originates in the macro `any` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`:
googletest/src/matchers/all_matcher.rs#L77
warning: unused import: `$crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq`
--> googletest/src/matchers/all_matcher.rs:77:13
|
77 | use $crate::matcher_support::__internal_unstable_do_not_depend_on_these::auto_eq;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
146 | verify_that!(42, all![eq(42), 42, lt(100)])
| ------------------------- in this macro invocation
|
= note: this warning originates in the macro `all` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
unused imports: `verify_eq` and `verify_that`:
googletest/src/assertions.rs#L1716
warning: unused imports: `verify_eq` and `verify_that`
--> googletest/src/assertions.rs:1716:22
|
1716 | assertions::{verify_eq, verify_that},
| ^^^^^^^^^ ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
|
|
unnecessary parentheses:
/home/runner/work/googletest-rust/googletest-rust/googletest/src/assertions.rs#L606
warning: unnecessary parentheses
--> integration_tests/src/integration_tests.rs:904:9
|
904 | expect_false!(2 + 2 == 5)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#double_parens
= note: `#[warn(clippy::double_parens)]` on by default
= note: this warning originates in the macro `expect_false` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
unnecessary parentheses:
/home/runner/work/googletest-rust/googletest-rust/googletest/src/assertions.rs#L606
warning: unnecessary parentheses
--> integration_tests/src/macro_hygiene.rs:78:9
|
78 | googletest::expect_false!(false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#double_parens
= note: `#[warn(clippy::double_parens)]` on by default
= note: this warning originates in the macro `googletest::expect_false` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
unnecessary parentheses:
/home/runner/work/googletest-rust/googletest-rust/googletest/src/assertions.rs#L606
warning: unnecessary parentheses
--> integration_tests/src/expect_false_macro_on_true_condition_fails_test_and_continues.rs:23:9
|
23 | expect_false!(2 + 2 == 4);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#double_parens
= note: `#[warn(clippy::double_parens)]` on by default
= note: this warning originates in the macro `expect_false` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this `impl` can be derived:
googletest/src/matcher_support/summarize_diff.rs#L310
warning: this `impl` can be derived
--> googletest/src/matcher_support/summarize_diff.rs:310:1
|
310 | / impl Default for Buffer<'_> {
311 | | fn default() -> Self {
312 | | Self::Empty
313 | | }
314 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
help: replace the manual implementation with a derive attribute and mark the default variant
|
249 + #[derive(Default)]
250 | enum Buffer<'a> {
251 ~ #[default]
252 ~ Empty,
|
|