diff --git a/src/option/from_stream.rs b/src/option/from_stream.rs index 2c4c1391..e4da809e 100644 --- a/src/option/from_stream.rs +++ b/src/option/from_stream.rs @@ -39,11 +39,7 @@ where .collect() .await; - if found_error { - None - } else { - Some(out) - } + if found_error { None } else { Some(out) } }) } } diff --git a/src/vec/from_stream.rs b/src/vec/from_stream.rs index 692c7fa0..26196af9 100644 --- a/src/vec/from_stream.rs +++ b/src/vec/from_stream.rs @@ -1,6 +1,6 @@ use std::pin::Pin; -use crate::stream::{FromStream, IntoStream, Extend}; +use crate::stream::{Extend, FromStream, IntoStream}; impl FromStream for Vec { #[inline]