Skip to content

Commit 307668e

Browse files
Use unmanaged constraint.
1 parent a3a6491 commit 307668e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/ImageSharp/Formats/Jpeg/Components/GenericBlock8x8.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
7-
using SixLabors.ImageSharp.Advanced;
87
using SixLabors.ImageSharp.Memory;
98
using SixLabors.ImageSharp.PixelFormats;
109

@@ -16,7 +15,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components
1615
/// </summary>
1716
[StructLayout(LayoutKind.Sequential)]
1817
internal unsafe partial struct GenericBlock8x8<T>
19-
where T : struct
18+
where T : unmanaged
2019
{
2120
public const int Size = 64;
2221

src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.IO;
77
using System.Linq;
88
using System.Runtime.CompilerServices;
9-
using System.Threading.Tasks;
109
using SixLabors.ImageSharp.Common.Helpers;
1110
using SixLabors.ImageSharp.Formats.Jpeg.Components;
1211
using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder;

0 commit comments

Comments
 (0)