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 {
124124 match std:: fs:: OpenOptions :: new ( )
125125 . create ( true )
126126 . append ( true )
127- . write ( true )
127+
128128 . open ( path)
129129 {
130130 Err ( e) => {
@@ -241,7 +241,7 @@ impl DiagnosticMessage {
241241 }
242242
243243 fn text ( & mut self , text : & str ) -> & mut Self {
244- self . plaintext_message = text. to_owned ( ) ;
244+ text. clone_into ( & mut self . plaintext_message ) ;
245245 self
246246 }
247247
@@ -286,7 +286,7 @@ impl DiagnosticMessage {
286286 }
287287
288288 pub fn markdown ( & mut self , text : & str ) -> & mut Self {
289- self . markdown_message = text. to_owned ( ) ;
289+ text. clone_into ( & mut self . markdown_message ) ;
290290 self
291291 }
292292 pub fn severity ( & mut self , severity : Severity ) -> & mut Self {
You can’t perform that action at this time.
0 commit comments