Skip to content

Commit 7fe2a1b

Browse files
committed
fix clippy::cognitive_complexity
1 parent 7c293d3 commit 7fe2a1b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/buf_writer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use async_std::task;
44

55
#[test]
66
fn test_buffered_writer() {
7+
#![allow(clippy::cognitive_complexity)]
78
task::block_on(async {
89
let inner = Vec::new();
910
let mut writer = BufWriter::with_capacity(2, inner);

tests/channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ fn capacity() {
3737

3838
#[test]
3939
fn len_empty_full() {
40+
#![allow(clippy::cognitive_complexity)]
4041
task::block_on(async {
4142
let (s, r) = channel(2);
4243

0 commit comments

Comments
 (0)