mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
Fix syntax error when copying rust array to clipboard (#348)
This commit is contained in:
committed by
GitHub
parent
aa527ba29b
commit
0d1686e170
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user