Skip to content

Commit 0e1866d

Browse files
committed
fix clippy complaint
1 parent b49d81d commit 0e1866d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/servers/lsp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl LspServer {
123123
let params: DidChangeTextDocumentParams =
124124
notification.extract("textDocument/didChange")?;
125125
assert_eq!(params.content_changes.len(), 1);
126-
let latest = params.content_changes.into_iter().last().unwrap();
126+
let latest = params.content_changes.into_iter().next_back().unwrap();
127127
let text_document = TextDocumentItem {
128128
uri: params.text_document.uri,
129129
language_id: Self::HEYVL_LANGUAGE_IDENTIFIER.to_owned(),

0 commit comments

Comments
 (0)