From a75dc0e82c2b9fc3eefa57e421d5061273054a50 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Fri, 21 Feb 2020 00:44:02 +0100 Subject: [PATCH] [ci] clippy: check tests --- .gitlab-ci.yml | 2 +- lib/dubp/wot/lib.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ef79b88..33d998b7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -138,7 +138,7 @@ clippy: - cargo clippy -- -V stage: quality script: - - cargo clippy --all -- -D warnings --verbose + - cargo clippy --all --tests -- -D warnings --verbose audit_dependencies: extends: .rust_stable_lin64 diff --git a/lib/dubp/wot/lib.rs b/lib/dubp/wot/lib.rs index e865cebc..56e38493 100644 --- a/lib/dubp/wot/lib.rs +++ b/lib/dubp/wot/lib.rs @@ -124,7 +124,6 @@ mod tests { wot.rem_link(WotId(0), WotId(3)); wot.rem_link(WotId(0), WotId(4)); - // false when not linked + test out of bounds assert_eq!(wot.has_link(WotId(0), WotId(6)), HasLinkResult::Link(false)); assert_eq!( -- GitLab