diff --git a/module/core/format_tools/src/format/string.rs b/module/core/format_tools/src/format/string.rs index ee34e9e718..00ba7dedc6 100644 --- a/module/core/format_tools/src/format/string.rs +++ b/module/core/format_tools/src/format/string.rs @@ -7,7 +7,6 @@ /// Define a private namespace for all its items. mod private { - // use crate::*; /// Returns the size of the text in `src` as a `[ width, height ]` array. @@ -74,7 +73,7 @@ mod private for line in lines( text ) { height += 1; - let line_length = line.chars().count(); + let line_length = line.as_bytes().len(); if line_length > width { width = line_length;