about summary refs log tree commit diff
path: root/src/expr.rs
AgeCommit message (Collapse)AuthorLines
2019-02-19Various cosmetic improvements (#3403)Alexander Regueiro-13/+3
2019-02-09cargo fmtHirokazu Hata-2/+10
2019-02-09Fix rust_2018_idioms warningsHirokazu Hata-46/+46
2019-02-06Cargo updatetopecongiro-0/+1
- Update `rustc-ap-*` crates to 366.0.0 - Update the other crates to the latest stable
2019-02-04transition to Rust 2018Evgenii-20/+20
2019-02-01fix "internal error: left behind trailing whitespace" with long linesrchaser53-2/+6
2018-12-25Fix shape when formatting return or break expr on statement position (#3259)Seiichi Uchida-1/+6
2018-12-18Fix trim_right/trim_left deprecation warnings (#3252)Philipp Hansch-2/+2
2018-11-28fix the visitor's starting position when visiting a labelled blockStéphane Campinas-7/+8
Close #3217
2018-11-16fix a few clippy warningsMatthias Krüger-1/+1
types.rs: fix single_char_pattern (use character patters instead of string for .ends_with() and .starts_with() patterns.rs expr.rs file_lines.rs: fix into_iter_on_ref_ptr (use iter() or iter_mut() instead of into_iter() tests/mod.rs: check_files(): take Option<PathBuf> by reference
2018-11-08Replace always true conditionals with `true`Kevin Stenerson-12/+6
2018-11-05Add config option to more aggressively allow overflowKevin Stenerson-6/+25
2018-11-04fix alignment of a struct's fields with the visual styleStéphane Campinas-1/+1
- rewrite_with_alignment was called from the expr module with the wrong shape that missed the extra offset needed for the visual style - rewrite_with_alignment was indenting the given shape although that should have been the caller's responsability
2018-10-15force a newline after the `if` condition if there is a differentStéphane Campinas-1/+42
indentation level
2018-10-16Merge pull request #3106 from sinkuu/clippyNick Cameron-6/+1
Clippy and cleanups
2018-10-16Merge pull request #3101 from nrc/pair-newlineNick Cameron-4/+5
Simplify multi-lining binop exprs
2018-10-15Use UnOp::to_stringShotaro Yamada-6/+1
2018-10-15try to fix comment bad wrapping (#3099)Daniele D'Orazio-0/+1
2018-10-15Fixup formattingNick Cameron-4/+5
2018-10-14Use correct widthSeiichi Uchida-1/+3
When rewriting trait bounds on the next line, we do not want to add an extra indentation. However, the max width should be smaller.
2018-10-12expr: replace `.unwrap_or` with `.map_or`Otavio Salvador-4/+2
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-08Merge pull request #3078 from YaLTeR/fix-closure-indentationNick Cameron-2/+1
Fix inconsistent overflow behavior in Visual style
2018-10-08Merge pull request #3077 from YaLTeR/fix-extra-commasNick Cameron-1/+1
Get rid of extra commas in Visual struct literal formatting
2018-10-08Merge pull request #3070 from topecongiro/issue-3030Nick Cameron-13/+43
Format a paren expr with double slash comment
2018-10-06Overflow Visual functions even with one argumentIvan Molodetskikh-2/+1
2018-10-06No trailing comma in struct literals (Visual)Ivan Molodetskikh-1/+1
2018-10-01Format a paren expr with double slash commentSeiichi Uchida-13/+43
2018-09-30Move maybe_get_args_offset to overflow.rsSeiichi Uchida-48/+0
2018-09-30Avoid using to_expr as much as possibleSeiichi Uchida-4/+2
2018-09-30Get rid of ToExpr traitSeiichi Uchida-104/+12
2018-09-29Take impl Iterator for overflow routinesSeiichi Uchida-15/+29
2018-09-19Cargo fmtSeiichi Uchida-3/+6
2018-09-19Fix shape for indexSeiichi Uchida-1/+6
2018-09-11Use correct heuristic for match block flatteningIvan Molodetskikh-5/+7
2018-09-03Merge pull request #2992 from max-sixty/clippy2Nick Cameron-7/+7
Clippy 2/2
2018-09-01final clippy changesMaximilian Roos-7/+7
2018-08-31Fix shape in rewrite_tuple_in_visual_indent_styleIvan Molodetskikh-1/+1
2018-08-26Format in-place expression like assignmentSeiichi Uchida-2/+4
2018-08-26Fix build with rust nightly by updating try block syntax. (#2965)Zach Lute-11/+6
2018-08-23Reformatcad97-3/+5
2018-08-23Rename CodeMap/FileMap to SourceMap/SourceFilecad97-14/+14
#2946
2018-08-03Use builder pattern for ListFormattingSeiichi Uchida-22/+8
2018-07-31Merge pull request #2874 from cavedweller/masterNick Cameron-2/+32
Format Async block and async fn
2018-07-29Add tests for async & async moveBen Brittain-5/+16
2018-07-29Format Async block and async fnBen Brittain-2/+21
2018-07-28Support raw identifiers in struct expressionsAndrew Audibert-1/+1
2018-07-24formattingNick Cameron-2/+1
2018-07-24chains: prefer to use the next line for an expression, if using the same ↵Nick Cameron-3/+6
line would introduce an open block or similar This problem came to light due to the chains changes, but effects other code too. It only happens rarely, e.g., before this fix: ``` match foo { MacroArgKind::Delimited(ref delim_tok, ref args) => rewrite_delimited_inner( delim_tok, args, ).map(|(lhs, inner, rhs)| format!("{}{}{}", lhs, inner, rhs)), }; ``` after: ``` match foo { MacroArgKind::Delimited(ref delim_tok, ref args) => { rewrite_delimited_inner(delim_tok, args) .map(|(lhs, inner, rhs)| format!("{}{}{}", lhs, inner, rhs)) } } ```
2018-07-14removed unused max_width argument of rewrite_string functionStéphane Campinas-1/+0
2018-07-12Fixup formatting of tests and sourceNick Cameron-6/+6