fix clippy::cognitive_complexity

This commit is contained in:
k-nasa 2019-10-27 18:47:22 +09:00
parent 7c293d37f7
commit 7fe2a1bbce
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ use async_std::task;
#[test]
fn test_buffered_writer() {
#![allow(clippy::cognitive_complexity)]
task::block_on(async {
let inner = Vec::new();
let mut writer = BufWriter::with_capacity(2, inner);

View file

@ -37,6 +37,7 @@ fn capacity() {
#[test]
fn len_empty_full() {
#![allow(clippy::cognitive_complexity)]
task::block_on(async {
let (s, r) = channel(2);