Skip to content

Commit

Permalink
Update Fantomas
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Nov 22, 2023
1 parent 24de4b9 commit a5d4832
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fantomas": {
"version": "5.2.0",
"version": "6.2.3",
"commands": [
"fantomas"
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Check code formatting
run: |
dotnet tool restore
dotnet fantomas --check -r src
dotnet fantomas --check src
- name: Restore
run: dotnet restore ${SLN_FILE}
- name: Build
Expand Down
6 changes: 3 additions & 3 deletions src/Fabulous/Builders.fs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ type WidgetBuilder<'msg, 'marker> =
DebugName = $"{typeof<'marker>.Name}<{typeof<'msg>.Name}>"
#endif
ScalarAttributes =
match StackList.length &scalarAttributes with
| 0us -> ValueNone
| _ -> ValueSome(Array.sortInPlace (fun a -> a.Key) (StackList.toArray &scalarAttributes))
match StackList.length &scalarAttributes with
| 0us -> ValueNone
| _ -> ValueSome(Array.sortInPlace (fun a -> a.Key) (StackList.toArray &scalarAttributes))

WidgetAttributes = ValueOption.map (Array.sortInPlace(fun a -> a.Key)) widgetAttributes

Expand Down

0 comments on commit a5d4832

Please sign in to comment.