pkstrings: prefer String::from in example
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
5900325086
commit
d54e39dcf6
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ fn read_data(data: Vec<u8>) {
|
|||
for (offset, ord) in data.iter().enumerate() {
|
||||
// Read current chr
|
||||
if let Ok(pkstr) = PKString::try_from(*ord) {
|
||||
buffer.push(pkstr.into_string());
|
||||
buffer.push(String::from(pkstr));
|
||||
} else {
|
||||
if buffer.len() >= 4 {
|
||||
print_buffer(offset, &buffer);
|
||||
|
|
Loading…
Reference in a new issue