From 22170a0d550be53a37caa85e4f9911029688b314 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 24 Apr 2018 21:15:19 +0200 Subject: [PATCH] Do not String::from(String) --- lib/core/libimagstore/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/libimagstore/src/util.rs b/lib/core/libimagstore/src/util.rs index f0efdb1b..61b232a3 100644 --- a/lib/core/libimagstore/src/util.rs +++ b/lib/core/libimagstore/src/util.rs @@ -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)]