Skip to content

Commit 59c1fe8

Browse files
committed
use into instread of from
1 parent 983f76c commit 59c1fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/io/multi_reader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct MultiReader {
2828
impl MultiReader {
2929
/// Constructs `MultiReader`. `current` is set to the first element that is popped out from `VecDeque`.
3030
pub fn new(readers: Vec<Box<dyn Read>>) -> Self {
31-
let mut deque = VecDeque::from(readers);
31+
let mut deque: VecDeque<Box<dyn Read>> = readers.into();
3232
let current = deque.pop_front();
3333
Self {
3434
readers: deque,

0 commit comments

Comments
 (0)