diff --git a/external-crates/move/crates/move-disassembler/src/disassembler.rs b/external-crates/move/crates/move-disassembler/src/disassembler.rs index e03a684a579f5..92687e05ea840 100644 --- a/external-crates/move/crates/move-disassembler/src/disassembler.rs +++ b/external-crates/move/crates/move-disassembler/src/disassembler.rs @@ -452,7 +452,9 @@ impl<'a> Disassembler<'a> { if s.len() <= PREVIEW_LEN + 2 { s.to_string() } else { - format!("{}..", &s[..PREVIEW_LEN]) + let mut preview: String = s.chars().take(PREVIEW_LEN).collect(); + preview.push_str(".."); + preview } }