From acafdd84d87f33379876e8a85c09690be8d5246b Mon Sep 17 00:00:00 2001 From: adrieljss Date: Mon, 3 Mar 2025 20:45:38 +0800 Subject: [PATCH] fix: remove ReqwestResponses along with its implementations --- plugins/http/src/commands.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index 7d5c1424..687cb8f2 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -23,8 +23,6 @@ use crate::{ const HTTP_USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"),); -impl tauri::Resource for ReqwestResponse {} - type CancelableResponseResult = Result; type CancelableResponseFuture = Pin + Send + Sync>>; @@ -414,9 +412,6 @@ pub async fn fetch_send( )); } - let mut resources_table = webview.resources_table(); - let rid = resources_table.add(ReqwestResponse(res)); - Ok(FetchResponse { status: status.as_u16(), status_text: status.canonical_reason().unwrap_or_default().to_string(),