diff --git a/pkstrings/examples/strings.rs b/pkstrings/examples/strings.rs index 2c67111..76b120d 100644 --- a/pkstrings/examples/strings.rs +++ b/pkstrings/examples/strings.rs @@ -41,7 +41,7 @@ fn read_data(data: Vec) { 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);