Browse Source

Fixed 2 clippy warnings

Use String::push rather than String::push_str when dealing with text 1 in length
david 4 months ago
parent
commit
8dbb80faf9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/data.rs

+ 2 - 2
src/data.rs

@@ -596,7 +596,7 @@ impl Data {
                 } else {
                     out.push_str("Data");
                 }
-                out.push_str(">");
+                out.push('>');
                 out
             },
             Self::Map(m) => {
@@ -618,7 +618,7 @@ impl Data {
                 } else {
                     out.push_str("Data");
                 }
-                out.push_str(">");
+                out.push('>');
                 out
             },
         }