From 6504a141f33a37b8eeb004ad5f031023eb493d7d Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 15 May 2019 22:09:36 +0300 Subject: [PATCH] melib: dont allocate new string --- melib/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melib/src/error.rs b/melib/src/error.rs index 4e12428d..8c4b447b 100644 --- a/melib/src/error.rs +++ b/melib/src/error.rs @@ -59,7 +59,7 @@ impl fmt::Display for MeliError { impl Into for MeliError { fn into(self) -> String { - format!("{}", self) + self.details } }