mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
Suppress "CA1051:Do not declare visible instance fields" for structs
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
namespace Awake.Core.Models
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "This rule does not make sense for structs.")]
|
||||
public struct BatteryReportingScale
|
||||
{
|
||||
public uint Granularity;
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace Awake.Core.Models
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "This rule does not make sense for structs.")]
|
||||
public struct SystemPowerCapabilities
|
||||
{
|
||||
[MarshalAs(UnmanagedType.U1)]
|
||||
|
||||
Reference in New Issue
Block a user