Nick Cameron
9be2971274
Refactor pairs/binops
2017-01-11 12:06:23 +13:00
sinkuu
7e2fcc27e1
Fix #1258 ( #1266 )
...
* Fix #1258
* Add test
2017-01-09 16:11:12 +13:00
Stepan Koltsov
ad46f9af95
Do not ignore space_before_bound in where clause ( #1267 )
2017-01-09 15:58:06 +13:00
Stepan Koltsov
1c22d85db5
Better message for LineOverflow error ( #1268 )
...
(with current length and configured limit)
2017-01-09 15:57:11 +13:00
Nick Cameron
21c085261b
Remove self
from use foo::bar::self;
...
Also adds the `normalize_imports` config option.
Fixes #1252
2017-01-06 17:02:56 +13:00
Nick Cameron
6ecf5b8e84
If a string goes over-width, give up formatting it
...
Logic here is that the original might be better and at best we'll only make it a different kind of bad.
Fixes #1237
2017-01-06 16:35:28 +13:00
Nick Cameron
32cb839855
Macros in types are possible
...
Fixes #1234
2017-01-06 16:06:09 +13:00
sinkuu
1358f1ac80
Fix #1259 ( #1263 )
...
* Use `Indent::block_indent` instead of adding `config.tab_spaces`
* Fix #1259 impl block closing brace placement
2017-01-04 09:20:02 +13:00
Nick Cameron
90db34a961
Merge pull request #1251 from erickt/master
...
Version bump for dependencies, add support for `break` values
2016-12-24 10:48:46 +13:00
Erick Tryzelaar
836682eef4
Version bump for toml, unicode-segmentation, itertools, and walkdir
2016-12-23 11:26:23 -08:00
Erick Tryzelaar
e67ffcfb21
Update to the latest syntex module
...
One notable feature is this this adds support for the experimental
`let x = loop { ... break $expr; }` syntax. This also includes a
test for formatting all the break and continue variations.
2016-12-23 11:20:07 -08:00
Antoine Gersant
2f6c93b4f7
Fixed broken link to style guidelines ( #1245 )
2016-12-21 19:32:04 +13:00
Jason Dusek
22ddc36b17
Recognize "rlib" and "cdylib" crates ( #1238 )
...
Addresses #828 and https://github.com/lunaryorn/emacs-module.rs/issues/4 and probably numerous others.
2016-12-16 08:56:15 -10:00
Luke Clifton
56469a8745
Don't drop opening brace on long line matches. ( #1228 )
...
* Don't drop opening brace on long line matches.
Fixes #1225
* Added a test case for long match arms with braces on newline.
2016-11-28 13:47:38 +13:00
Luke Clifton
6bf1382927
Indent open brace for impl when nested. ( #1227 )
...
* Indent open brace for impl when nested.
Fixes #1226
* Added test case for indented impl with brace on newline
2016-11-28 13:47:07 +13:00
Nick Cameron
1cc4f0c35f
Merge pull request #1231 from mineo/condense_wildcard_suffices
...
Prevent an ugly linebreak in --config-helps description of condense_wildcard_suffices
2016-11-28 09:52:27 +13:00
Wieland Hoffmann
2fc1a2d3cc
Prevent an ugly linebreak in --config-helps description of condense_wildcard_suffices
2016-11-27 21:43:02 +01:00
Nick Cameron
d3eba76e4d
update Serde, etc.
...
Lots of changes to how closures work
2016-11-21 11:02:18 +13:00
Nick Cameron
61ab06a92e
v0.6.3
2016-11-20 10:37:34 +13:00
Bekh-Ivanov Aleksey
935286755c
Stripping trailing commas and spaces from vec!
elements ( #1219 )
...
* Stripping trailing commas and spaces from `vec!` elements
* Stripping trailing commas and spaces ONLY from `vec!` elements
* Added comment
2016-11-14 17:42:15 +13:00
Nick Cameron
49ce1b641a
Merge pull request #1221 from Zarokka/issue-1216
...
fix #1216 : panic on comment starting with //*
2016-11-14 09:46:47 +13:00
Nick Cameron
24314813c7
Merge pull request #1218 from dereckson/patch-1
...
Improve config::WriteMode comments
2016-11-14 09:33:42 +13:00
Martin Wohli
6c32c02952
fix #1216 : panic on comment starting with //*
2016-11-13 09:36:43 +01:00
Sébastien Santoro
0dffec8a5c
Improve config::WriteMode comments
...
- Fix typo
- Switch comments verbs to the the 3rd person to offer a better coherence among options
2016-11-12 03:59:43 +00:00
Nick Cameron
ea8fa05edf
Merge pull request #1212 from marcusklaas/test123
...
Condense suffix strings of simple wildcards in patterns
2016-11-08 09:58:10 +13:00
Marcus Klaas
5fc9fa3770
Condense suffix strings of simple wildcards in patterns
2016-11-07 21:38:20 +01:00
Nick Cameron
664f646979
Merge pull request #1207 from Fraser999/master
...
Fixes #1184 where reordering import items could cause a panic.
2016-11-07 11:32:03 +13:00
Nick Cameron
898208414e
Merge pull request #1206 from masonium/fmt-extra-files
...
#1126 cargo-fmt processes bench, test, example files
2016-11-07 11:06:16 +13:00
Fraser Hutchison
aef665aa21
Fixes a few doc typos.
2016-11-03 04:22:16 +00:00
Fraser Hutchison
f933d31115
Fixes #1184 where reordering import items could cause a panic.
...
Also extends an existing test to avoid regression.
2016-11-03 04:21:47 +00:00
Mason Smith
764100361e
cargo-fmt processes bench, test, example files
2016-11-02 02:28:06 -07:00
Nick Cameron
8494d5f89c
Merge pull request #1200 from efyang/strayspace
...
Remove extra whitespace after macro calls
2016-10-28 09:14:37 +13:00
Edward Yang
5ecdd072d6
Remove extra whitespace after macro calls
2016-10-27 02:40:08 -05:00
Edward Yang
1c83c76015
Stop extra newlines from being added after block comments ( #1185 )
2016-10-25 08:45:15 +13:00
Mikko Rantanen
4b1c669037
Add spaces_within_square_brackets config option. ( #1191 )
...
* Add spaces_within_square_brackets config option.
Enabling the config enforces spaces within various array/slice brackets.
* Fixed budget-calculations for [] spacing
2016-10-18 09:09:49 +13:00
Nick Cameron
23f01eddac
Merge pull request #1188 from Rantanen/master
...
Add support for spaces_within_angle_brackets
2016-10-14 11:38:39 +13:00
Nick Cameron
171d917888
Merge pull request #1189 from Pursuit92/master
...
Quick fix for "impl Trait"
2016-10-14 10:10:18 +13:00
Josh Chase
903e30b503
Quick fix for "impl Trait"
...
* Remove "TODO" conversion
* Add a couple of simple test cases
Fix courtesy of @signaraiona
2016-10-13 12:30:16 -07:00
Mikko Rantanen
d68d43c0a5
Added test for for< 'a >
2016-10-13 22:28:58 +03:00
Mikko Rantanen
636a828772
Add support for spaces_within_angle_brackets
...
Enabling the config adds spaces within type arguments: <>
2016-10-13 19:28:18 +03:00
Mikko Rantanen
7be202fa3c
Add support for spaces_within_parens config ( #1187 )
...
* Add support for spaces_within_parens config
* Changes based on review comments
2016-10-13 14:34:08 +13:00
Nick Cameron
724f75eaa5
Merge pull request #1182 from philipc/issue-1149
...
Preserve macro formatting if we can't rewrite it
2016-10-12 17:48:20 +13:00
Nick Cameron
8ffb581563
Merge pull request #1186 from woshilapin/vim-doc
...
Update link towards vim documentation
2016-10-11 14:46:37 +13:00
Jean SIMARD
091d96f6fa
Update link towards vim documentation
2016-10-10 21:35:07 -04:00
Nick Cameron
f1df5c1aa9
cargo update
2016-10-07 12:58:18 +13:00
Nick Cameron
49598f6efd
Merge pull request #1183 from oylenshpeegul/patch-1
...
Link to rust-mode.el instead of rustfmt.el
2016-10-06 07:17:00 +13:00
Tim Heaney
7deeee1160
Link to rust-mode.el instead of rustfmt.el
...
Link directly to rust-mode.el, since rustfmt.el is marked obsolete.
2016-10-05 09:19:21 -04:00
Philip Craig
c4a7a7108e
Preserve macro formatting if we can't rewrite it
2016-10-03 14:14:56 +10:00
Florian Gilcher
b8f7ec3dcc
Add custom comments ( #1179 )
...
* Add custom comments
This allows users to use custom comments such as
```
//@ this is a custom comment
//@ with multiple lines
```
without having them destroyed by rustfmt.
* Fix issues with empty lines
* Check non-whitespace right after custom comments
2016-09-30 08:34:46 +13:00
Nick Cameron
3e14af0eeb
Merge pull request #1175 from nokaa/master
...
Fix broken import
2016-09-28 06:52:17 +13:00