Use using System.Runtime.CompilerServices instead of fully-qualified attribute

Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/a1231ba4-d235-4e2d-98b2-a5bef602a85c

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-04 08:50:06 +00:00 committed by GitHub
parent f656234c38
commit cbf74ba6a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using CliFx.Infrastructure;
@ -67,8 +68,7 @@ internal static class ConsoleExtensions
public static async IAsyncEnumerable<string> ReadLinesAsync(
this TextReader reader,
[System.Runtime.CompilerServices.EnumeratorCancellation]
CancellationToken cancellationToken = default
[EnumeratorCancellation] CancellationToken cancellationToken = default
)
{
while (await reader.ReadLineAsync(cancellationToken) is { } line)