From 0d1686e170a4311be527b7ddaeb4e3da1eb187dc Mon Sep 17 00:00:00 2001 From: Rekai Nyangadzayi Musuka Date: Thu, 25 Nov 2021 01:44:48 -0600 Subject: [PATCH] Fix syntax error when copying rust array to clipboard (#348) --- source/views/view_hexeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index 5f0951423..2308aa91b 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -881,7 +881,7 @@ namespace hex { str += " };"; break; case Language::Rust: - str += "let data: [u8, " + std::to_string(buffer.size()) + "] = [ "; + str += "let data: [u8; " + std::to_string(buffer.size()) + "] = [ "; for (const auto &byte : buffer) str += hex::format("0x{0:02X}, ", byte);