Skip to content

Commit 04eecf4

Browse files
committed
Fix broken build
1 parent 61684e3 commit 04eecf4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

crates/axl-lsp/src/axl_context.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ impl LspContext for AxlContext {
5656
path: &str,
5757
current_file: &LspUrl,
5858
workspace_root: Option<&std::path::Path>,
59-
) -> anyhow::Result<LspUrl> {
59+
) -> Result<LspUrl, String> {
6060
eprintln!("resolve_load {path} {current_file} {workspace_root:?}");
61-
anyhow::bail!("not implemented yet: resolve_load")
61+
Err("not implemented yet: resolve_load".to_owned())
6262
}
6363

6464
fn render_as_load(
6565
&self,
6666
target: &LspUrl,
6767
current_file: &LspUrl,
6868
workspace_root: Option<&std::path::Path>,
69-
) -> anyhow::Result<String> {
69+
) -> Result<String, String> {
7070
eprintln!("render_as_load {target} {current_file} {workspace_root:?}");
7171
Ok(String::new())
7272
}
@@ -76,12 +76,12 @@ impl LspContext for AxlContext {
7676
literal: &str,
7777
current_file: &LspUrl,
7878
workspace_root: Option<&std::path::Path>,
79-
) -> anyhow::Result<Option<StringLiteralResult>> {
79+
) -> Result<Option<StringLiteralResult>, String> {
8080
eprintln!("resolve_string_literal {literal} {current_file} {workspace_root:?}");
8181
Ok(None)
8282
}
8383

84-
fn get_load_contents(&self, uri: &LspUrl) -> anyhow::Result<Option<String>> {
84+
fn get_load_contents(&self, uri: &LspUrl) -> Result<Option<String>, String> {
8585
eprintln!("get_load_contents {uri}");
8686
Ok(None)
8787
}
@@ -95,7 +95,7 @@ impl LspContext for AxlContext {
9595
&self,
9696
current_file: &LspUrl,
9797
symbol: &str,
98-
) -> anyhow::Result<Option<LspUrl>> {
98+
) -> Result<Option<LspUrl>, String> {
9999
eprintln!("get_url_for_global_symbol {current_file} {symbol}");
100100
Ok(None)
101101
}

0 commit comments

Comments
 (0)