Explorar o código

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

Ben S %!s(int64=11) %!d(string=hai) anos
pai
achega
571be76454
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  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);