From 351ee046b6be910afad002275c5af34c7a7c3e25 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 4 Aug 2026 12:55:27 +0200 Subject: [PATCH] Suppressed unused property warning --- .../Tools/Services/RustService.Share.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/MindWork AI Studio/Tools/Services/RustService.Share.cs b/app/MindWork AI Studio/Tools/Services/RustService.Share.cs index b078ba37..6234fe10 100644 --- a/app/MindWork AI Studio/Tools/Services/RustService.Share.cs +++ b/app/MindWork AI Studio/Tools/Services/RustService.Share.cs @@ -1,3 +1,4 @@ +// ReSharper disable NotAccessedPositionalProperty.Local namespace AIStudio.Tools.Services; public sealed partial class RustService @@ -6,10 +7,7 @@ public sealed partial class RustService { try { - using var response = await this.http.PostAsJsonAsync( - "/share/file", - new ShareFileRequest(filePath), - this.jsonRustSerializerOptions); + using var response = await this.http.PostAsJsonAsync("/share/file", new ShareFileRequest(filePath), this.jsonRustSerializerOptions); if (!response.IsSuccessStatusCode) { this.logger?.LogError($"The Rust runtime rejected the share request: {response.StatusCode}."); @@ -41,5 +39,6 @@ public sealed partial class RustService } private sealed record ShareFileRequest(string FilePath); + private sealed record ShareFileResponse(bool Success, string Issue); -} +} \ No newline at end of file