From 76d7299cb24c854338f18f8e19971d25901fcb49 Mon Sep 17 00:00:00 2001 From: Madeline Ritchie <2144273+MadelineRitchie@users.noreply.github.com> Date: Thu, 27 Feb 2025 08:44:26 -0800 Subject: [PATCH] fix: remove invalid usages of RequireQualifiedAccess This allows building on systems with dotnet 9 installed, and has zero behavioral impact. --- src/Avalonia.FuncUI/Components/Context/Context.StateHook.fs | 2 +- src/Avalonia.FuncUI/Components/State/State.fs | 2 +- src/Avalonia.FuncUI/DSL/Panels/Grid.fs | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.FuncUI/Components/Context/Context.StateHook.fs b/src/Avalonia.FuncUI/Components/Context/Context.StateHook.fs index 6e32e825..19b4ca53 100644 --- a/src/Avalonia.FuncUI/Components/Context/Context.StateHook.fs +++ b/src/Avalonia.FuncUI/Components/Context/Context.StateHook.fs @@ -17,7 +17,7 @@ type StateHookError = " This usually means a component key should have changed, but it didn't." ] -[] +[] type StateHookValueResolver = | Const of constant: IAnyReadable | Lazy of factory: (unit -> IAnyReadable) diff --git a/src/Avalonia.FuncUI/Components/State/State.fs b/src/Avalonia.FuncUI/Components/State/State.fs index 1d2bf55b..8c1692c3 100644 --- a/src/Avalonia.FuncUI/Components/State/State.fs +++ b/src/Avalonia.FuncUI/Components/State/State.fs @@ -5,7 +5,7 @@ open Avalonia.FuncUI /// Used to create a dependency graph of state values for debugging / visualization. -[] +[] type InstanceType = | Source | Adapter of sources: Map diff --git a/src/Avalonia.FuncUI/DSL/Panels/Grid.fs b/src/Avalonia.FuncUI/DSL/Panels/Grid.fs index e3a44e76..07882472 100644 --- a/src/Avalonia.FuncUI/DSL/Panels/Grid.fs +++ b/src/Avalonia.FuncUI/DSL/Panels/Grid.fs @@ -5,7 +5,6 @@ module ColumnDefinition = open Avalonia.Controls [] - [] type ColumnWidth = /// Column is auto-sized to fit it's contents | Auto @@ -37,7 +36,6 @@ module RowDefinition = open Avalonia.Controls [] - [] type RowHeight = /// Row is auto-sized to fit it's contents | Auto