Skip to content

Commit 34f9754

Browse files
committed
Format
1 parent 41b7bcd commit 34f9754

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Fabulous/Array.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module ArraySlice =
4949
module Array =
5050
let inline appendOne (v: 'v) (arr: 'v array) =
5151
let res = Array.zeroCreate(arr.Length + 1)
52-
arr.CopyTo (res.AsSpan ())
52+
arr.CopyTo(res.AsSpan())
5353
res[arr.Length] <- v
5454
res
5555

src/Fabulous/View.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ module View =
5656
WidgetBuilder<'newMsg, 'marker>(builder.Key, builder.Attributes)
5757

5858
/// Combine map and lazy. Map the widget's message type to the parent's message type, and then memoize it
59-
let inline lazyMap ([<InlineIfLambda>] mapFn: 'oldMsg -> 'newMsg) ([<InlineIfLambda>] viewFn: 'key -> WidgetBuilder<'oldMsg, 'marker>) (model: 'key) = lazy' (viewFn >> map mapFn) model
59+
let inline lazyMap ([<InlineIfLambda>] mapFn: 'oldMsg -> 'newMsg) ([<InlineIfLambda>] viewFn: 'key -> WidgetBuilder<'oldMsg, 'marker>) (model: 'key) =
60+
lazy' (viewFn >> map mapFn) model

0 commit comments

Comments
 (0)