From c1e7e71003c4178aaba004183427809544295a68 Mon Sep 17 00:00:00 2001 From: Michal S Date: Sun, 21 Aug 2022 15:23:51 +0100 Subject: [PATCH] Amethyst v3.6.0, now with 20% less memory leaks! --- README.md | 7 +++---- src/internal/utils.rs | 9 +++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d060ebd..c5e174a 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,13 @@


- License + License GitHub isses GitHub pull requests
Discord - The
- Mastodon Follow + The maintainer of this repository
+ Mastodon Follow Twitter Follow -

diff --git a/src/internal/utils.rs b/src/internal/utils.rs index df5d322..d23c99c 100644 --- a/src/internal/utils.rs +++ b/src/internal/utils.rs @@ -171,13 +171,10 @@ impl Spinner { }; let opts = textwrap::Options::new(termwidth()).subsequent_indent(" "); - let symbol = Box::new(format!("{}", OK_SYMBOL.purple())); - let text = Box::new(format!("{}", wrap(&text, opts).join("\n").bold())); + let symbol = format!("{}", OK_SYMBOL.purple()); + let text = format!("{}", wrap(&text, opts).join("\n").bold()); - let symbol: &'static str = Box::leak(symbol); - let text: &'static str = Box::leak(text); - - self.spinner.stop_and_persist(symbol, text); + self.spinner.stop_and_persist(&symbol, &text); } }