Fix tests for no_std build (#384)

This fixes `cargo test --no-default-features`.
This commit is contained in:
Cheng XU
2020-05-22 11:18:20 +09:00
committed by GitHub
parent fa464ca483
commit e8fa2511ff
4 changed files with 11 additions and 3 deletions
+1
View File
@@ -1,4 +1,5 @@
#![deny(warnings, rust_2018_idioms)]
#![cfg(feature = "std")]
use std::io::{BufRead, Read};