From 572cbf1043c7bbe83e333b9287c2add86823a9a3 Mon Sep 17 00:00:00 2001 From: llama Date: Sat, 18 Oct 2025 09:58:07 +0800 Subject: [PATCH] remove unneeded rpc error message --- qt/launcher-gui/src-tauri/rust_interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/launcher-gui/src-tauri/rust_interface.rs b/qt/launcher-gui/src-tauri/rust_interface.rs index 1326b6b9f..981d4b080 100644 --- a/qt/launcher-gui/src-tauri/rust_interface.rs +++ b/qt/launcher-gui/src-tauri/rust_interface.rs @@ -18,6 +18,7 @@ pub fn write_rust_interface(pool: &DescriptorPool) -> Result<()> { let mut buf = String::new(); buf.push_str("use prost::Message; use anyhow::Context; use anyhow::anyhow;"); + // TODO: render as trait for better compiler errors let (services, _) = get_services(pool); if let Some(s) = services .into_iter() @@ -108,7 +109,6 @@ pub(crate) async fn handle_rpc( r#" _ => Err(anyhow!("{method} not implemented"))?, } - .with_context(|| format!("{method} rpc call failed")) } "#, )