File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ impl LogWriter {
124
124
match std:: fs:: OpenOptions :: new ( )
125
125
. create ( true )
126
126
. append ( true )
127
- . write ( true )
127
+
128
128
. open ( path)
129
129
{
130
130
Err ( e) => {
@@ -241,7 +241,7 @@ impl DiagnosticMessage {
241
241
}
242
242
243
243
fn text ( & mut self , text : & str ) -> & mut Self {
244
- self . plaintext_message = text. to_owned ( ) ;
244
+ text. clone_into ( & mut self . plaintext_message ) ;
245
245
self
246
246
}
247
247
@@ -286,7 +286,7 @@ impl DiagnosticMessage {
286
286
}
287
287
288
288
pub fn markdown ( & mut self , text : & str ) -> & mut Self {
289
- self . markdown_message = text. to_owned ( ) ;
289
+ text. clone_into ( & mut self . markdown_message ) ;
290
290
self
291
291
}
292
292
pub fn severity ( & mut self , severity : Severity ) -> & mut Self {
You can’t perform that action at this time.
0 commit comments