mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 21:27:14 -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();
|
let mut buf = String::new();
|
||||||
buf.push_str("use prost::Message; use anyhow::Context; use anyhow::anyhow;");
|
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);
|
let (services, _) = get_services(pool);
|
||||||
if let Some(s) = services
|
if let Some(s) = services
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
@ -108,7 +109,6 @@ pub(crate) async fn handle_rpc<R: ::tauri::Runtime>(
|
||||||
r#"
|
r#"
|
||||||
_ => Err(anyhow!("{method} not implemented"))?,
|
_ => Err(anyhow!("{method} not implemented"))?,
|
||||||
}
|
}
|
||||||
.with_context(|| format!("{method} rpc call failed"))
|
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue