mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 05:37:12 -05:00
remove unneeded rpc error message
This commit is contained in:
parent
eaa514fb7a
commit
572cbf1043
1 changed files with 1 additions and 1 deletions
|
|
@ -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: ::tauri::Runtime>(
|
|||
r#"
|
||||
_ => Err(anyhow!("{method} not implemented"))?,
|
||||
}
|
||||
.with_context(|| format!("{method} rpc call failed"))
|
||||
}
|
||||
"#,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue