diff --git a/Cargo.toml b/Cargo.toml index c1dd45b..716f695 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ ] [workspace.package] -version = "0.10.0-alpha.6" +version = "0.10.0-alpha.7" authors = ["PoiScript "] repository = "https://github.com/PoiScript/orgize" edition = "2021" diff --git a/orgize-lsp/src/commands/mod.rs b/orgize-lsp/src/commands/mod.rs index 60b55a0..ff4cd89 100644 --- a/orgize-lsp/src/commands/mod.rs +++ b/orgize-lsp/src/commands/mod.rs @@ -64,7 +64,7 @@ impl OrgizeCommand { pub async fn execute(params: &ExecuteCommandParams, backend: &Backend) -> Option { let result = match ( params.command.as_str(), - params.arguments.get(0).and_then(|x| x.as_str()), + params.arguments.first().and_then(|x| x.as_str()), params.arguments.get(1).and_then(|x| x.as_u64()), ) { ("orgize.src-block.execute", Some(s), Some(n)) => backend diff --git a/orgize-lsp/src/document_link_resolve.rs b/orgize-lsp/src/document_link_resolve.rs index abb8f67..f79000e 100644 --- a/orgize-lsp/src/document_link_resolve.rs +++ b/orgize-lsp/src/document_link_resolve.rs @@ -16,7 +16,7 @@ pub fn document_link_resolve( let data = data.as_array()?; match ( - data.get(0)?.as_str()?, + data.first()?.as_str()?, data.get(1)?.as_str()?, data.get(2)?.as_str()?, ) {