iCodeSometime / candidate

Adding single-character string literal RS-P1004
Anti-pattern
Minor
a year agoa year old
Calling push_str with single-character string literal "\n", use push with a character literal instead
262                s.push_str(". ");
263            }
264            if x % 8 == 7 {
265                s.push_str("\n");266            }
267        }
268        write!(f, "{}", s)