forked from mirror/async-std
fix clippy::cognitive_complexity
This commit is contained in:
parent
7c293d37f7
commit
7fe2a1bbce
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -37,6 +37,7 @@ fn capacity() {
|
|||
|
||||
#[test]
|
||||
fn len_empty_full() {
|
||||
#![allow(clippy::cognitive_complexity)]
|
||||
task::block_on(async {
|
||||
let (s, r) = channel(2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue