diff options
| author | Seiichi Uchida <seuchida@gmail.com> | 2018-03-07 15:49:55 +0900 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2018-03-09 14:07:43 +0900 |
| commit | 466caa77bb23ed8c7fd39d1fc62a83ce192b7f0a (patch) | |
| tree | fdb8038ce06ec0f18c9f7289e8a27c746c63db78 /src/shape.rs | |
| parent | 88a3c60f63a3edc907de9d93e3f9895ee9ff3dd1 (diff) | |
Make INDENT_BUFFER longer
Avoid panicking when indent whose width is 80 called `to_string()`.
Diffstat (limited to 'src/shape.rs')
| -rw-r--r-- | src/shape.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shape.rs b/src/shape.rs index 047a50340eb..c6a183216b8 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -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 { |
