소스 검색

The Row struct's fields don't need to be pub

Ben S 11 년 전
부모
커밋
571be76454
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/output/details.rs

+ 6 - 6
src/output/details.rs

@@ -56,12 +56,12 @@ impl Details {
 }
 
 struct Row {
-    pub depth: usize,
-    pub cells: Vec<Cell>,
-    pub name: String,
-    pub last: bool,
-    pub attrs: Vec<Attribute>,
-    pub children: bool,
+    depth: usize,
+    cells: Vec<Cell>,
+    name: String,
+    last: bool,
+    attrs: Vec<Attribute>,
+    children: bool,
 }
 
 type ColumnInfo = (usize, Alignment);