Do not String::from(String)

This commit is contained in:
Matthias Beyer 2018-04-24 21:15:19 +02:00
parent 6f5590713a
commit 22170a0d55

View file

@ -61,7 +61,7 @@ pub fn entry_buffer_to_header_content(buf: &str) -> Result<(Value, String)> {
}
}
Ok((Value::parse(&header)?, String::from(content)))
Ok((Value::parse(&header)?, content))
}
#[cfg(test)]