Skip to content
3 changes: 1 addition & 2 deletions module/core/format_tools/src/format/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down
Loading