Skip to content

Commit 6a588a6

Browse files
authored
Merge pull request #1827 from hirosystems/fix/lsp-defaults
fix: Use correct `default()` function for initializing LSP options
2 parents 4a768cd + 49746c4 commit 6a588a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/clarity-lsp/src/common/requests/capabilities.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use lsp_types::{
55
};
66
use serde::{Deserialize, Serialize};
77

8-
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
8+
#[derive(Debug, Clone, Deserialize, Serialize)]
99
#[serde(rename_all = "camelCase", default)]
1010
pub struct InitializationOptions {
1111
completion: bool,
@@ -18,8 +18,8 @@ pub struct InitializationOptions {
1818
signature_help: bool,
1919
}
2020

21-
impl InitializationOptions {
22-
pub fn default() -> Self {
21+
impl Default for InitializationOptions {
22+
fn default() -> Self {
2323
InitializationOptions {
2424
completion: true,
2525
completion_smart_parenthesis_wrap: true,

0 commit comments

Comments
 (0)