Skip to content

Commit

Permalink
Remove dependency on rustc-hash (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaput authored Dec 3, 2024
1 parent b25c8a1 commit c69f3df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ itertools = "0.12.1"
jod-thread = "0.1.2"
lsp-server = "0.7.7"
lsp-types = "=0.95.0"
rustc-hash = "1.1.0"
salsa = { package = "rust-analyzer-salsa", version = "0.17.0-pre.6" }
scarb-metadata = "1.13"
scarb-proc-macro-server-types = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions src/server/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
// +-----------------------------------------------------+

use std::any::TypeId;
use std::collections::HashMap;

use anyhow::Result;
use lsp_server::{Notification, RequestId, Response};
use lsp_types::notification::Notification as NotificationTrait;
use rustc_hash::FxHashMap;
use serde_json::Value;
use tracing::error;

Expand All @@ -35,7 +35,7 @@ pub struct Responder(ClientSender);
pub struct Requester<'s> {
sender: ClientSender,
next_request_id: i32,
response_handlers: FxHashMap<RequestId, ResponseBuilder<'s>>,
response_handlers: HashMap<RequestId, ResponseBuilder<'s>>,
}

impl Client<'_> {
Expand All @@ -46,7 +46,7 @@ impl Client<'_> {
requester: Requester {
sender,
next_request_id: 1,
response_handlers: FxHashMap::default(),
response_handlers: Default::default(),
},
}
}
Expand Down

0 comments on commit c69f3df

Please sign in to comment.