From b6239d23b5f7d77557f29e268093498d0752588b Mon Sep 17 00:00:00 2001 From: Roberto Huertas Date: Sun, 16 Jun 2019 21:18:44 +0200 Subject: [PATCH] idiomatic changes --- src/decompiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decompiler.rs b/src/decompiler.rs index f71c02d..1da5c9e 100644 --- a/src/decompiler.rs +++ b/src/decompiler.rs @@ -100,7 +100,7 @@ impl Decompiler { i, outpath.as_path().display() ); - self.extract_msg(&msg); + self.extract_msg(msg.as_str()); fs::create_dir_all(&outpath)?; } else { let msg = format!( @@ -109,7 +109,7 @@ impl Decompiler { outpath.as_path().display(), file.size() ); - self.extract_msg(&msg); + self.extract_msg(msg.as_str()); if let Some(p) = outpath.parent() { if !p.exists() { fs::create_dir_all(&p)?;