Avoid Printing Binary String to Logs (#1576)

Converts the graffiti binary data to string before printing to logs.

## Issue Addressed

#1566 

## Proposed Changes
Rather than converting graffiti to a vector the binary data less the last character is passed to String::from_utf_lossy(). This then allows us to call the to_string() function directly to give us the string

## Additional Info

Rust skills are fairly weak
This commit is contained in:
Sean
2020-09-05 05:46:25 +00:00
parent 2627463366
commit 638daa87fe
3 changed files with 8 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -348,6 +348,7 @@ dependencies = [
"rand 0.7.3",
"rand_core 0.5.1",
"rayon",
"regex",
"safe_arith",
"serde",
"serde_derive",