From b06300f6ffa0ca7971bfea6065c57b8f8a70466e Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 19 Sep 2026 11:18:56 +0200 Subject: [PATCH] fix(desktop): restore WriteAt trait import dropped by PR#50 port ticket::FetchData::write_at is a utility::WriteAt trait method on Windows; the upstream PR removed the import since the non-Windows stub provides write_at inherently. Gated the import to cfg(windows). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- desktop/crates/cloudreve-sync/src/drive/commands.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/crates/cloudreve-sync/src/drive/commands.rs b/desktop/crates/cloudreve-sync/src/drive/commands.rs index f26c413a..93fb5600 100644 --- a/desktop/crates/cloudreve-sync/src/drive/commands.rs +++ b/desktop/crates/cloudreve-sync/src/drive/commands.rs @@ -13,6 +13,8 @@ use crate::{ tasks::TaskPayload, utils::toast, }; +#[cfg(windows)] +use crate::cfapi::utility::WriteAt; use anyhow::{Context, Result}; use bytes::Bytes; use cloudreve_api::{