Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Jul 30, 2024
1 parent 48f9a6b commit 6e2102a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sway-lsp/src/core/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl TextDocument {
Self {
version: 1,
uri: path.into(),
content: content,
content,
line_offsets,
}
})
Expand Down Expand Up @@ -77,7 +77,7 @@ impl TextDocument {
self.content
.replace_range(start_index..end_index, &change.text);
} else {
self.content = change.text.clone();
self.content.clone_from(&change.text);
}
self.line_offsets = Self::calculate_line_offsets(&self.content);
self.version += 1;
Expand Down

0 comments on commit 6e2102a

Please sign in to comment.