We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87a271c commit b17ffd2Copy full SHA for b17ffd2
shared/tree-sitter-extractor/src/diagnostics.rs
@@ -124,7 +124,7 @@ impl LogWriter {
124
match std::fs::OpenOptions::new()
125
.create(true)
126
.append(true)
127
- .write(true)
+
128
.open(path)
129
{
130
Err(e) => {
@@ -241,7 +241,7 @@ impl DiagnosticMessage {
241
}
242
243
fn text(&mut self, text: &str) -> &mut Self {
244
- self.plaintext_message = text.to_owned();
+ text.clone_into(&mut self.plaintext_message);
245
self
246
247
@@ -286,7 +286,7 @@ impl DiagnosticMessage {
286
287
288
pub fn markdown(&mut self, text: &str) -> &mut Self {
289
- self.markdown_message = text.to_owned();
+ text.clone_into(&mut self.markdown_message);
290
291
292
pub fn severity(&mut self, severity: Severity) -> &mut Self {
0 commit comments