From 1cf82839040ea6435be38aaca381ce26676d0411 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 26 Sep 2018 14:42:51 +0000 Subject: [PATCH] rust: Make io::Read a generic again No reason to do virtual dispatch here. Closes: #1585 Approved by: jlebon --- rust/src/treefile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/treefile.rs b/rust/src/treefile.rs index 1ab0abb7..6e62b947 100644 --- a/rust/src/treefile.rs +++ b/rust/src/treefile.rs @@ -43,9 +43,9 @@ enum InputFormat { } /// Parse a YAML treefile definition using architecture `arch`. -fn treefile_parse_stream( +fn treefile_parse_stream( fmt: InputFormat, - input: &mut io::Read, + input: &mut R, arch: Option<&str>, ) -> io::Result { let mut treefile: TreeComposeConfig = match fmt {