Skip to content

Commit 27d760f

Browse files
committed
Fix a renamed clippy lint
1 parent 1ac2f06 commit 27d760f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tests/category.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn show() {
7474
}
7575

7676
#[test]
77-
#[allow(clippy::cyclomatic_complexity)]
77+
#[allow(clippy::cognitive_complexity)]
7878
fn update_crate() {
7979
let (_b, app, middle) = app();
8080
let mut req = req(Method::Get, "/api/v1/categories/foo");

src/tests/krate.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn index() {
9595
}
9696

9797
#[test]
98-
#[allow(clippy::cyclomatic_complexity)]
98+
#[allow(clippy::cognitive_complexity)]
9999
fn index_queries() {
100100
let (app, anon, user) = TestApp::init().with_user();
101101
let user = user.as_model();
@@ -316,7 +316,7 @@ fn index_sorting() {
316316
}
317317

318318
#[test]
319-
#[allow(clippy::cyclomatic_complexity)]
319+
#[allow(clippy::cognitive_complexity)]
320320
fn exact_match_on_queries_with_sort() {
321321
let (app, anon, user) = TestApp::init().with_user();
322322
let user = user.as_model();
@@ -1459,7 +1459,7 @@ fn yank_not_owner() {
14591459
}
14601460

14611461
#[test]
1462-
#[allow(clippy::cyclomatic_complexity)]
1462+
#[allow(clippy::cognitive_complexity)]
14631463
fn yank_max_version() {
14641464
let (_, anon, _, token) = TestApp::with_proxy().with_token();
14651465

0 commit comments

Comments
 (0)