Skip to content

Commit

Permalink
refactor: rename example-adapter to adapter-example(close #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
satler-git committed Dec 16, 2024
1 parent 07ff5ca commit 23dd92b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

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

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "example-adapter"
name = "adapter-example"
version.workspace = true
authors.workspace = true
edition.workspace = true
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/etymora/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ lsp-types.workspace = true
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.133"

adapter-example = { path = "../adapter-example/" }
etymora-traits = { path = "../etymora-traits/" }
example-adapter = { path = "../example-adapter/" }

tokio.workspace = true

Expand Down
2 changes: 1 addition & 1 deletion crates/etymora/src/dict_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::error::EtymoraError;

#[derive(Debug)]
pub(crate) enum Dicts {
ExampleDict(example_adapter::ExampleDictionary),
ExampleDict(adapter_example::ExampleDictionary),
}

impl etymora_traits::Dictionary for Dicts {
Expand Down
2 changes: 1 addition & 1 deletion crates/etymora/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub(crate) type Result<T> = std::result::Result<T, EtymoraError>;
#[derive(Debug, Error)]
pub(crate) enum EtymoraError {
#[error("{0}")]
ExampleAdapterError(#[source] example_adapter::ExampleError),
ExampleAdapterError(#[source] adapter_example::ExampleError),
#[error("{0}")]
ProcotolError(#[source] lsp_server::ProtocolError),
#[error("Error occurs in desirializing, this is a type of ProtocolError: {0}")]
Expand Down

0 comments on commit 23dd92b

Please sign in to comment.