mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +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
|
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 struct BatteryReportingScale
|
||||||
{
|
{
|
||||||
public uint Granularity;
|
public uint Granularity;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ using System.Runtime.InteropServices;
|
|||||||
|
|
||||||
namespace Awake.Core.Models
|
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
|
public struct SystemPowerCapabilities
|
||||||
{
|
{
|
||||||
[MarshalAs(UnmanagedType.U1)]
|
[MarshalAs(UnmanagedType.U1)]
|
||||||
|
|||||||
Reference in New Issue
Block a user