diff options
| author | topecongiro <seuchida@gmail.com> | 2017-09-15 12:10:58 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-09-15 12:10:58 +0900 |
| commit | f51261e93eedaba4ea17a70bd33fd0f34a5ded26 (patch) | |
| tree | 4a3270de7222fa894e416630c05270811bbc8ac6 /src/utils.rs | |
| parent | 45e48ec424b2e1db489db860581aaf7e684fbae0 (diff) | |
Cargo fmt
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.rs b/src/utils.rs index 438bb027637..d8c18034830 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -165,8 +165,8 @@ pub fn trimmed_last_line_width(s: &str) -> usize { #[inline] pub fn last_line_extendable(s: &str) -> bool { s.lines().last().map_or(false, |s| { - s.ends_with("\"#") || - s.trim() + s.ends_with("\"#") + || s.trim() .chars() .all(|c| c == ')' || c == ']' || c == '}' || c == '?') }) |
