Skip to content

Commit 4d3045c

Browse files
authored
Remove unnecessary use of clone method (#81)
1 parent dbe04c9 commit 4d3045c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/language_servers/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub(super) fn get_initialization_options(
1010
) -> Option<Value> {
1111
LspSettings::for_worktree(language_server_id, worktree)
1212
.ok()
13-
.and_then(|lsp_settings| lsp_settings.initialization_options.clone())
13+
.and_then(|lsp_settings| lsp_settings.initialization_options)
1414
}
1515

1616
pub(super) fn get_workspace_configuration(
@@ -19,7 +19,7 @@ pub(super) fn get_workspace_configuration(
1919
) -> Option<Value> {
2020
LspSettings::for_worktree(language_server_id, worktree)
2121
.ok()
22-
.and_then(|lsp_settings| lsp_settings.settings.clone())
22+
.and_then(|lsp_settings| lsp_settings.settings)
2323
}
2424

2525
pub(super) fn get_binary_settings(

0 commit comments

Comments
 (0)