Skip to content

Commit

Permalink
Remove workaround for Unsafe.AsRef bug in SDK 8.0.100
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Jan 9, 2024
1 parent 9c65794 commit 14dec57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
dotnet-version: '8.0.101'

- name: NuGet cache
uses: actions/cache@v1
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
dotnet-version: '8.0.101'

- name: Download nupkg
uses: actions/download-artifact@v1
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
dotnet-version: '8.0.101'

- name: Prepare
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
dotnet-version: '8.0.101'

- name: Download nupkg
uses: dawidd6/action-download-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "8.0.101",
"rollForward": "feature",
"allowPrerelease": true
}
Expand Down
7 changes: 0 additions & 7 deletions src/Bolero/Router.fs
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,8 @@ exception InvalidRouter of kind: InvalidRouterKind with
type PageModel<'T> =
{ Model: 'T }

#if NET8_0
static let prop = typeof<PageModel<'T>>.GetProperty("Model")

member internal this.SetModel(value) =
prop.SetValue(this, value)
#else
member internal this.SetModel(value) =
Unsafe.AsRef<'T>(&this.Model) <- value
#endif

[<AutoOpen>]
module private RouterImpl =
Expand Down

0 comments on commit 14dec57

Please sign in to comment.