Remove unused IoSlice import
This commit is contained in:
parent
106a2612bd
commit
a160d5902d
|
@ -224,7 +224,6 @@ impl Rn2903 {
|
||||||
///
|
///
|
||||||
/// Using [`::transact()`](#method.transact) is preferred.
|
/// Using [`::transact()`](#method.transact) is preferred.
|
||||||
pub fn send_line(&mut self, line: &[u8]) -> Result<()> {
|
pub fn send_line(&mut self, line: &[u8]) -> Result<()> {
|
||||||
use std::io::IoSlice;
|
|
||||||
let bytes: Vec<u8> = line.iter().chain(b"\x0D\x0A".iter()).cloned().collect();
|
let bytes: Vec<u8> = line.iter().chain(b"\x0D\x0A".iter()).cloned().collect();
|
||||||
let mut cursor = 0;
|
let mut cursor = 0;
|
||||||
while cursor < bytes.len() {
|
while cursor < bytes.len() {
|
||||||
|
|
Loading…
Reference in New Issue