Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
chore: fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmemorygrinder committed Jan 9, 2024
1 parent e5eccf4 commit 8de3b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/lsp-server-wrapper/src/jsonrpc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod error;

pub(crate) use self::error::not_initialized_error;
pub use self::error::{Error, ErrorCode, Result};
pub use self::error::{Error, Result};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tower_lsp::lsp_types::{DiagnosticSeverity, InitializeParams};
* @returns {Option<String>} Normalized path
*/
pub fn get_root_path(params: InitializeParams) -> Option<String> {
if let Some(folder) = params.workspace_folders?.get(0) {
if let Some(folder) = params.workspace_folders?.first() {
return Some(normalize_path(folder.uri.path()));
} else if let Some(root_uri) = params.root_uri {
return Some(normalize_path(root_uri.path()));
Expand Down

0 comments on commit 8de3b03

Please sign in to comment.