mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Put the where clause next to the closing bracket only when it is not indented
This commit is contained in:
+1
-1
@@ -2143,7 +2143,7 @@ pub fn new(suppress_comma: bool, snuggle: bool) -> WhereClauseOption {
|
||||
pub fn snuggled(current: &str) -> WhereClauseOption {
|
||||
WhereClauseOption {
|
||||
suppress_comma: false,
|
||||
snuggle: trimmed_last_line_width(current) == 1,
|
||||
snuggle: last_line_width(current) == 1,
|
||||
compress_where: false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user