소스 검색

Fixed 2 clippy warnings

Use String::push rather than String::push_str when dealing with text 1 in length
david 6 달 전
부모
커밋
a69f04c142
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
             },
         }