File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ impl Error for XmlParseError {}
139139
140140impl fmt:: Debug for XmlParseError {
141141 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
142- write ! ( f, "{}" , self )
142+ write ! ( f, "{self}" )
143143 }
144144}
145145
Original file line number Diff line number Diff line change @@ -586,9 +586,7 @@ impl Node {
586586 } else {
587587 // Propagate libxml2 failure to remove
588588 Err ( From :: from ( format ! (
589- "libxml2 failed to remove property with status: {:?}" ,
590- remove_prop_status
591- ) ) )
589+ "libxml2 failed to remove property with status: {remove_prop_status:?}" ) ) )
592590 }
593591 } else {
594592 // silently no-op if asked to remove a property which is not present
@@ -618,9 +616,7 @@ impl Node {
618616 } else {
619617 // Propagate libxml2 failure to remove
620618 Err ( From :: from ( format ! (
621- "libxml2 failed to remove property with status: {:?}" ,
622- remove_prop_status
623- ) ) )
619+ "libxml2 failed to remove property with status: {remove_prop_status:?}" ) ) )
624620 }
625621 } else {
626622 // silently no-op if asked to remove a property which is not present
@@ -646,9 +642,7 @@ impl Node {
646642 } else {
647643 // Propagate libxml2 failure to remove
648644 Err ( From :: from ( format ! (
649- "libxml2 failed to remove property with status: {:?}" ,
650- remove_prop_status
651- ) ) )
645+ "libxml2 failed to remove property with status: {remove_prop_status:?}" ) ) )
652646 }
653647 } else {
654648 // silently no-op if asked to remove a property which is not present
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ impl fmt::Display for Object {
278278 let c_string = CStr :: from_ptr ( receiver as * const c_char ) ;
279279 let rust_string = str:: from_utf8 ( c_string. to_bytes ( ) ) . unwrap ( ) . to_owned ( ) ;
280280 bindgenFree ( receiver as * mut c_void ) ;
281- write ! ( f, "{}" , rust_string )
281+ write ! ( f, "{rust_string}" )
282282 }
283283 }
284284}
You can’t perform that action at this time.
0 commit comments