Răsfoiți Sursa

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

Ben S 11 ani în urmă
părinte
comite
571be76454
1 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 6 6
      src/output/details.rs

+ 6 - 6
src/output/details.rs

@@ -56,12 +56,12 @@ impl Details {
 }
 }
 
 
 struct Row {
 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);
 type ColumnInfo = (usize, Alignment);