Make INDENT_BUFFER longer
Avoid panicking when indent whose width is 80 called `to_string()`.
This commit is contained in:
parent
88a3c60f63
commit
466caa77bb
1 changed files with 2 additions and 2 deletions
|
|
@ -23,10 +23,10 @@ pub struct Indent {
|
|||
pub alignment: usize,
|
||||
}
|
||||
|
||||
// INDENT_BUFFER.len() = 80
|
||||
// INDENT_BUFFER.len() = 81
|
||||
const INDENT_BUFFER_LEN: usize = 80;
|
||||
const INDENT_BUFFER: &str =
|
||||
"\n ";
|
||||
"\n ";
|
||||
impl Indent {
|
||||
pub fn new(block_indent: usize, alignment: usize) -> Indent {
|
||||
Indent {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue