]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge pull request #1442 from topecongiro/poor-formatting/trailing-comma
Nick Cameron [Sun, 7 May 2017 22:45:03 +0000 (10:45 +1200)]
Merge pull request #1442 from topecongiro/poor-formatting/trailing-comma

Remove comma from function definition with a single argument

7 years agoMerge pull request #1511 from topecongiro/bug/closure-fallback
Nick Cameron [Sun, 7 May 2017 22:30:50 +0000 (10:30 +1200)]
Merge pull request #1511 from topecongiro/bug/closure-fallback

Add fallback path inside rewrite_closure

7 years agoMerge pull request #1513 from topecongiro/refactoring
Nick Cameron [Sun, 7 May 2017 22:29:02 +0000 (10:29 +1200)]
Merge pull request #1513 from topecongiro/refactoring

Add methods to Shape

7 years agoRefactor Shape
topecongiro [Sun, 7 May 2017 22:24:32 +0000 (07:24 +0900)]
Refactor Shape

7 years agoAdd indented and with_max_width
topecongiro [Sun, 7 May 2017 22:24:12 +0000 (07:24 +0900)]
Add indented and with_max_width

7 years agoMerge pull request #1512 from topecongiro/config-path
Nick Cameron [Sun, 7 May 2017 22:15:41 +0000 (10:15 +1200)]
Merge pull request #1512 from topecongiro/config-path

Allow config-path to point to a file

7 years agoAllow config-path to point to a file
topecongiro [Sun, 7 May 2017 07:44:03 +0000 (16:44 +0900)]
Allow config-path to point to a file

7 years agoAdd fallback path
topecongiro [Sun, 7 May 2017 04:06:54 +0000 (13:06 +0900)]
Add fallback path

7 years agoBlock format control flow discriminant expressions and binops
Nick Cameron [Fri, 5 May 2017 02:29:18 +0000 (14:29 +1200)]
Block format control flow discriminant expressions and binops

Fixes #1450

Adds control_style option

7 years agoUpdate tests
topecongiro [Thu, 4 May 2017 06:17:57 +0000 (15:17 +0900)]
Update tests

7 years agoMerge pull request #1502 from topecongiro/tests
Nick Cameron [Thu, 4 May 2017 23:04:26 +0000 (11:04 +1200)]
Merge pull request #1502 from topecongiro/tests

Add tests for issues which can be closed on master

7 years agoUse SeperatorTactic::Never for a single argument
topecongiro [Fri, 7 Apr 2017 07:53:49 +0000 (16:53 +0900)]
Use SeperatorTactic::Never for a single argument

7 years agoAdd tests for issues which can be closed on master
topecongiro [Thu, 4 May 2017 04:52:35 +0000 (13:52 +0900)]
Add tests for issues which can be closed on master

7 years agoMerge pull request #1495 from topecongiro/poor-formatting/closure
Nick Cameron [Thu, 4 May 2017 05:15:58 +0000 (17:15 +1200)]
Merge pull request #1495 from topecongiro/poor-formatting/closure

Fix weird indentation inside closures

7 years agoMerge pull request #1500 from shioju/master
Nick Cameron [Wed, 3 May 2017 22:00:03 +0000 (10:00 +1200)]
Merge pull request #1500 from shioju/master

Format macros in trait item position

7 years agoMerge pull request #1496 from est31/master
Nick Cameron [Wed, 3 May 2017 21:12:21 +0000 (09:12 +1200)]
Merge pull request #1496 from est31/master

Drop rustc-serialize, use serde, update toml dependency

7 years agoFormat macros in trait item position
Sheng Hau [Wed, 3 May 2017 16:10:03 +0000 (00:10 +0800)]
Format macros in trait item position

7 years agoCheck format failures explicitly in visit_block
topecongiro [Wed, 3 May 2017 15:21:51 +0000 (00:21 +0900)]
Check format failures explicitly in visit_block

7 years agoFormat fix
est31 [Wed, 3 May 2017 15:16:58 +0000 (17:16 +0200)]
Format fix

7 years agoSimplifications
est31 [Wed, 3 May 2017 15:11:34 +0000 (17:11 +0200)]
Simplifications

7 years agoDrop rustc-serialize, use serde, update toml dependency
est31 [Wed, 3 May 2017 08:23:50 +0000 (10:23 +0200)]
Drop rustc-serialize, use serde, update toml dependency

7 years agocargo update
Nick Cameron [Wed, 3 May 2017 06:02:48 +0000 (18:02 +1200)]
cargo update

7 years agoUpdate tests
topecongiro [Wed, 3 May 2017 02:26:31 +0000 (11:26 +0900)]
Update tests

7 years agoFormat source codes
topecongiro [Wed, 3 May 2017 02:26:25 +0000 (11:26 +0900)]
Format source codes

7 years agoKeep a chain with length chain_one_line_max in a single line
topecongiro [Wed, 3 May 2017 02:24:08 +0000 (11:24 +0900)]
Keep a chain with length chain_one_line_max in a single line

7 years agoSplit a long chain with a single child
topecongiro [Wed, 3 May 2017 02:22:36 +0000 (11:22 +0900)]
Split a long chain with a single child

7 years agoUse block indent when visual indent failed inside closure block
topecongiro [Wed, 3 May 2017 02:21:31 +0000 (11:21 +0900)]
Use block indent when visual indent failed inside closure block

7 years agoMerge pull request #1453 from topecongiro/bug/empty-struct-with-comment
Nick Cameron [Tue, 2 May 2017 01:49:15 +0000 (13:49 +1200)]
Merge pull request #1453 from topecongiro/bug/empty-struct-with-comment

Handle empty tuple struct def with comment properly

7 years agoMerge pull request #1488 from topecongiro/long-match-arm
Nick Cameron [Tue, 2 May 2017 01:49:02 +0000 (13:49 +1200)]
Merge pull request #1488 from topecongiro/long-match-arm

Use block when arm exceeds max_width

7 years agoAdd test for empty tuple struct with comment
topecongiro [Fri, 14 Apr 2017 13:39:20 +0000 (22:39 +0900)]
Add test for empty tuple struct with comment

7 years agoHandle empty tuple struct def properly
topecongiro [Fri, 14 Apr 2017 11:25:47 +0000 (20:25 +0900)]
Handle empty tuple struct def properly

7 years agoUse block when arm exceeds max_width
Seiichi Uchida [Mon, 1 May 2017 11:00:21 +0000 (20:00 +0900)]
Use block when arm exceeds max_width

7 years agoFixup tests
Nick Cameron [Mon, 1 May 2017 23:42:38 +0000 (11:42 +1200)]
Fixup tests

7 years agoMerge pull request #1474 from regexident/configs-guide
Nick Cameron [Mon, 1 May 2017 23:33:53 +0000 (11:33 +1200)]
Merge pull request #1474 from regexident/configs-guide

Added visual configurations guide.

7 years agoMerge pull request #1481 from regexident/system-error
Nick Cameron [Mon, 1 May 2017 23:17:48 +0000 (11:17 +1200)]
Merge pull request #1481 from regexident/system-error

Improve error message for missing source/target test file

7 years agoMerge pull request #1471 from regexident/type_punctuation_density
Nick Cameron [Mon, 1 May 2017 23:17:35 +0000 (11:17 +1200)]
Merge pull request #1471 from regexident/type_punctuation_density

Made `type_punctuation_density` apply too all `+` in types

7 years agoMade `type_punctuation_density` apply too all `+` in types
Vincent Esche [Mon, 24 Apr 2017 17:59:21 +0000 (19:59 +0200)]
Made `type_punctuation_density` apply too all `+` in types

7 years agoMerge pull request #1482 from regexident/configs-tests
Nick Cameron [Mon, 1 May 2017 23:00:09 +0000 (11:00 +1200)]
Merge pull request #1482 from regexident/configs-tests

Add source/target tests for each config option

7 years agoMerge pull request #1491 from regexident/where_density
Nick Cameron [Mon, 1 May 2017 22:50:32 +0000 (10:50 +1200)]
Merge pull request #1491 from regexident/where_density

Add todo on equal output for `where_density = Tall` or `Vertical`

7 years agoMerge pull request #1489 from regexident/gitignore
Nick Cameron [Mon, 1 May 2017 22:50:03 +0000 (10:50 +1200)]
Merge pull request #1489 from regexident/gitignore

Improve gitignore, adding ‘.DS_Store’

7 years agoMerge pull request #1487 from topecongiro/issue1470
Nick Cameron [Mon, 1 May 2017 22:45:23 +0000 (10:45 +1200)]
Merge pull request #1487 from topecongiro/issue1470

Use block indent when visual indent exceeds max_width

7 years agoMerge pull request #1454 from topecongiro/match
Nick Cameron [Mon, 1 May 2017 22:40:31 +0000 (10:40 +1200)]
Merge pull request #1454 from topecongiro/match

Format nested mathces properly.

7 years agoMerge pull request #1486 from topecongiro/refactoring
Nick Cameron [Mon, 1 May 2017 22:30:11 +0000 (10:30 +1200)]
Merge pull request #1486 from topecongiro/refactoring

Refactor source codes

7 years agoAdd visual configurations guide.
Vincent Esche [Wed, 26 Apr 2017 15:36:10 +0000 (17:36 +0200)]
Add visual configurations guide.

7 years agoImprove error message for missing source/target test file
Vincent Esche [Sun, 30 Apr 2017 21:44:12 +0000 (23:44 +0200)]
Improve error message for missing source/target test file

7 years agoAdd todo on equal output for `where_density = Tall` or `Vertical`
Vincent Esche [Mon, 1 May 2017 20:01:19 +0000 (22:01 +0200)]
Add todo on equal output for `where_density = Tall` or `Vertical`

7 years agoRemove generics_style option
Nick Cameron [Mon, 1 May 2017 19:56:46 +0000 (07:56 +1200)]
Remove generics_style option

7 years agoAdd source/target tests for each config option
Vincent Esche [Sun, 30 Apr 2017 21:49:39 +0000 (23:49 +0200)]
Add source/target tests for each config option

7 years agoImprove gitignore, adding ‘.DS_Store’
Vincent Esche [Mon, 1 May 2017 13:50:08 +0000 (15:50 +0200)]
Improve gitignore, adding ‘.DS_Store’

7 years agoUse block indent when visual indent exceeds max_width
Seiichi Uchida [Mon, 1 May 2017 09:52:43 +0000 (18:52 +0900)]
Use block indent when visual indent exceeds max_width

7 years agoAdd tests for visual indent struct tuple
topecongiro [Wed, 19 Apr 2017 14:34:45 +0000 (23:34 +0900)]
Add tests for visual indent struct tuple

7 years agoRemove TODO from 'format_tuple_struct'
topecongiro [Wed, 19 Apr 2017 14:33:03 +0000 (23:33 +0900)]
Remove TODO from 'format_tuple_struct'

7 years agoRemove TODO from 'rewrite_generics'
topecongiro [Wed, 19 Apr 2017 13:48:45 +0000 (22:48 +0900)]
Remove TODO from 'rewrite_generics'

7 years agoRefactor Shape
topecongiro [Wed, 19 Apr 2017 09:52:56 +0000 (18:52 +0900)]
Refactor Shape

7 years agoRemove duplicates
topecongiro [Fri, 14 Apr 2017 10:27:05 +0000 (19:27 +0900)]
Remove duplicates

7 years agoUse 'first_line_width'
topecongiro [Wed, 19 Apr 2017 01:14:27 +0000 (10:14 +0900)]
Use 'first_line_width'

7 years agoMerge pull request #1473 from topecongiro/bug/no-such-file-or-directory
Nick Cameron [Mon, 1 May 2017 04:38:43 +0000 (16:38 +1200)]
Merge pull request #1473 from topecongiro/bug/no-such-file-or-directory

Prevent panicking against directories or non-existent files

7 years agoRemove where_indent option
Nick Cameron [Mon, 1 May 2017 04:05:38 +0000 (16:05 +1200)]
Remove where_indent option

7 years agoMerge pull request #1469 from topecongiro/bug/chains
Nick Cameron [Mon, 1 May 2017 03:48:53 +0000 (15:48 +1200)]
Merge pull request #1469 from topecongiro/bug/chains

Remove a bug when calculating the length of the chain

7 years agoMerge pull request #1459 from shioju/master
Nick Cameron [Mon, 1 May 2017 03:15:30 +0000 (15:15 +1200)]
Merge pull request #1459 from shioju/master

Show exit codes' meanings with the rustfmt help message

7 years agoMerge pull request #1457 from diaevd/master
Nick Cameron [Mon, 1 May 2017 03:13:19 +0000 (15:13 +1200)]
Merge pull request #1457 from diaevd/master

format_lines: fix line_len for config.max_width

7 years agoMerge pull request #1461 from DarkEld3r/1447-line-length-in-chars
Nick Cameron [Mon, 1 May 2017 01:15:28 +0000 (13:15 +1200)]
Merge pull request #1461 from DarkEld3r/1447-line-length-in-chars

Fix line length calculation (should be in chars, not bytes)

7 years agoMerge pull request #1455 from topecongiro/unary-op
Nick Cameron [Mon, 1 May 2017 00:31:51 +0000 (12:31 +1200)]
Merge pull request #1455 from topecongiro/unary-op

Add heuristic choosing block or visual indent for unary op based on span

7 years agoPrevent panicking against directories or non-existent files
Seiichi Uchida [Wed, 26 Apr 2017 08:29:56 +0000 (17:29 +0900)]
Prevent panicking against directories or non-existent files

7 years agoFormat source codes
topecongiro [Mon, 24 Apr 2017 07:50:11 +0000 (16:50 +0900)]
Format source codes

7 years agoRemove '+ 1' when counting the length of chains
topecongiro [Mon, 24 Apr 2017 07:48:05 +0000 (16:48 +0900)]
Remove '+ 1' when counting the length of chains

7 years agoFix line length calculation (should be in chars, not bytes)
Stanislav Tkach [Wed, 19 Apr 2017 14:49:03 +0000 (17:49 +0300)]
Fix line length calculation (should be in chars, not bytes)

7 years agoShow exit codes' meanings with the rustfmt help message
Sheng Hau [Tue, 18 Apr 2017 16:23:57 +0000 (00:23 +0800)]
Show exit codes' meanings with the rustfmt help message

7 years agoformat_lines: fix line_len for config.max_width
Evgeny Duzhakov [Tue, 18 Apr 2017 11:31:53 +0000 (14:31 +0300)]
format_lines: fix line_len for config.max_width

7 years agoProhibit long return val from 'rewrite_closure_block'
topecongiro [Mon, 17 Apr 2017 13:57:07 +0000 (22:57 +0900)]
Prohibit long return val from 'rewrite_closure_block'

7 years agoFormat source codes
topecongiro [Sat, 15 Apr 2017 09:42:45 +0000 (18:42 +0900)]
Format source codes

7 years agoAdd heuristic choosing block or visual indent for unary op based on span
topecongiro [Sat, 15 Apr 2017 09:40:39 +0000 (18:40 +0900)]
Add heuristic choosing block or visual indent for unary op based on span

7 years agoCheck the length of the first line of the last method in the chain
topecongiro [Sat, 15 Apr 2017 07:23:38 +0000 (16:23 +0900)]
Check the length of the first line of the last method in the chain

7 years agoFormat source codes
topecongiro [Sat, 15 Apr 2017 07:22:54 +0000 (16:22 +0900)]
Format source codes

7 years agoUse offset instead of indent for match arm
topecongiro [Sat, 15 Apr 2017 07:22:26 +0000 (16:22 +0900)]
Use offset instead of indent for match arm

7 years agoMerge pull request #1446 from BusyJay/fix-file-lines-check
Nick Cameron [Sun, 9 Apr 2017 21:32:09 +0000 (09:32 +1200)]
Merge pull request #1446 from BusyJay/fix-file-lines-check

fix path check

7 years agofix path check
Jay Lee [Sun, 9 Apr 2017 21:25:12 +0000 (05:25 +0800)]
fix path check

7 years ago0.8.3
Nick Cameron [Thu, 6 Apr 2017 09:29:26 +0000 (21:29 +1200)]
0.8.3

Because I forgot to merge a PR into 0.8.2 that I really wanted :-(

7 years agoMerge pull request #1438 from topecongiro/poor-formatting/method-chains
Nick Cameron [Thu, 6 Apr 2017 09:26:13 +0000 (21:26 +1200)]
Merge pull request #1438 from topecongiro/poor-formatting/method-chains

Lookup the last element of 'subexpr_list' instead of the first one

7 years agov0.8.2
Nick Cameron [Thu, 6 Apr 2017 09:22:29 +0000 (21:22 +1200)]
v0.8.2

7 years agoFix a bug with overlong function calls
Nick Cameron [Thu, 6 Apr 2017 09:17:22 +0000 (21:17 +1200)]
Fix a bug with overlong function calls

7 years agoTest fallout
Nick Cameron [Thu, 6 Apr 2017 01:06:11 +0000 (13:06 +1200)]
Test fallout

7 years agoImplement a max array width
Nick Cameron [Thu, 6 Apr 2017 01:01:19 +0000 (13:01 +1200)]
Implement a max array width

Fixes #1421

7 years agoLookup the last element of 'subexpr_list' instead of the first one
topecongiro [Tue, 4 Apr 2017 21:28:47 +0000 (06:28 +0900)]
Lookup the last element of 'subexpr_list' instead of the first one

Closes #1217, #1236, #1389 and #1434.

7 years agoMerge pull request #1432 from topecongiro/parse-config
Nick Cameron [Wed, 5 Apr 2017 23:30:33 +0000 (11:30 +1200)]
Merge pull request #1432 from topecongiro/parse-config

Print error and usage when decoding config file failed

7 years agoMerge pull request #1436 from Ryan1729/master
Nick Cameron [Tue, 4 Apr 2017 20:32:21 +0000 (08:32 +1200)]
Merge pull request #1436 from Ryan1729/master

fix for #1419 and #1425

7 years agoeliminate nested match
Ryan1729 [Tue, 4 Apr 2017 06:01:33 +0000 (00:01 -0600)]
eliminate nested match

7 years agofix bug by adding boolean argument
Ryan1729 [Mon, 3 Apr 2017 23:39:14 +0000 (17:39 -0600)]
fix bug by adding boolean argument

Signed-off-by: Ryan1729 <Ryan1729@gmail.com>
7 years agoadd tests that fail because of comma insertion
Ryan1729 [Mon, 3 Apr 2017 22:15:11 +0000 (16:15 -0600)]
add tests that fail because of comma insertion

Signed-off-by: Ryan1729 <Ryan1729@gmail.com>
7 years agoChange return type of 'from_toml' from 'Config' to 'Result<Config>'
topecongiro [Fri, 31 Mar 2017 15:45:02 +0000 (00:45 +0900)]
Change return type of 'from_toml' from 'Config' to 'Result<Config>'

Closes #1426.

7 years agoMerge pull request #1435 from iliekturtles/line-length
Nick Cameron [Sun, 2 Apr 2017 20:40:22 +0000 (08:40 +1200)]
Merge pull request #1435 from iliekturtles/line-length

Do not count `\r` as part of line width.

7 years agoMerge pull request #1430 from fintelia/stdin_lines
Nick Cameron [Sun, 2 Apr 2017 20:27:35 +0000 (08:27 +1200)]
Merge pull request #1430 from fintelia/stdin_lines

The --file_lines argument now supports "stdin"

7 years agoMerge pull request #1431 from topecongiro/fix-1428
Nick Cameron [Sun, 2 Apr 2017 19:53:18 +0000 (07:53 +1200)]
Merge pull request #1431 from topecongiro/fix-1428

Check existence of pre comment explicitly

7 years agoDo not count `\r` as part of line width.
Mike Boutin [Sun, 2 Apr 2017 15:05:21 +0000 (11:05 -0400)]
Do not count `\r` as part of line width.

Resolves #1335. Does not attempt to handle a `\r` not followed by a `\n` nor
attempt to handle Unicode intricacies (#6) including zero-width or multi-byte
characters.

7 years agoWarn about extra files listed in file_lines argument
Jonathan Behrens [Fri, 31 Mar 2017 17:34:53 +0000 (13:34 -0400)]
Warn about extra files listed in file_lines argument

7 years agoCheck existence of pre comment explicitly
topecongiro [Fri, 31 Mar 2017 12:57:29 +0000 (21:57 +0900)]
Check existence of pre comment explicitly

This commit fixes #1428.

7 years ago--file_lines argument now supports "stdin"
Jonathan Behrens [Thu, 30 Mar 2017 23:16:06 +0000 (19:16 -0400)]
--file_lines argument now supports "stdin"

7 years agoMerge pull request #1413 from Emilgardis/master
Nick Cameron [Thu, 30 Mar 2017 19:43:40 +0000 (08:43 +1300)]
Merge pull request #1413 from Emilgardis/master

Implemented support for workspaces

7 years agoMerge pull request #1424 from topecongiro/long-struct
Nick Cameron [Thu, 30 Mar 2017 19:42:40 +0000 (08:42 +1300)]
Merge pull request #1424 from topecongiro/long-struct

Split long fields in structs

7 years agoSplit long fields in structs
topecongiro [Wed, 29 Mar 2017 11:15:27 +0000 (20:15 +0900)]
Split long fields in structs

This commit splits long fields in structs.
Closes #1412.