cli: prevent need for unsafe block (#5937)

pull/5941/head
Lukas Neubert 2020-07-22 19:53:49 +02:00 committed by GitHub
parent d820a97c83
commit 4096432a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ fn pretty_description(s string, indent_len int) string {
mut i := chars_per_line - 2
mut j := 0
for ; i < line.len; i += chars_per_line - 2 {
for line.str[i] != ` ` {
for line[i] != ` ` {
i--
}
// indent was already done the first iteration