Reformat de

This commit is contained in:
Anthony Ramine 2017-05-06 10:43:25 +02:00
parent c0457909e4
commit f122a88561

View File

@ -50,7 +50,8 @@ pub fn from_str<T: de::Deserialize>(input: &str) -> Result<T, Error> {
/// Convenience function that reads all bytes from `reader` and deserializes
/// them with `from_bytes`.
pub fn from_reader<T, R>(mut reader: R) -> Result<T, Error>
where T: de::Deserialize, R: Read
where T: de::Deserialize,
R: Read,
{
let mut buf = vec![];
reader.read_to_end(&mut buf)