diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-05-15 22:09:36 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:49 +0300 |
commit | 6504a141f33a37b8eeb004ad5f031023eb493d7d (patch) | |
tree | 08ee31b756b86d7dc7920723d50c3cd85b10fc03 | |
parent | 06b96449c107e46f75dfb2e478229e2587181cf6 (diff) |
melib: dont allocate new string
-rw-r--r-- | melib/src/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> for MeliError { fn into(self) -> String { - format!("{}", self) + self.details } } |