@@ -1300,7 +1300,7 @@ impl<'r> Tree<'r> {
1300
1300
node : Some ( self . root ) ,
1301
1301
palette,
1302
1302
} ;
1303
- let mut tree = termtree:: Tree :: root ( root) . with_glyphs ( GLYPHS ) ;
1303
+ let mut tree = termtree:: Tree :: new ( root) . with_glyphs ( GLYPHS ) ;
1304
1304
let joint = RenderNode {
1305
1305
repo,
1306
1306
head_branch,
@@ -1311,7 +1311,7 @@ impl<'r> Tree<'r> {
1311
1311
let stacks_len = self . stacks . len ( ) ;
1312
1312
for ( i, stack) in self . stacks . into_iter ( ) . enumerate ( ) {
1313
1313
if i < stacks_len - 1 {
1314
- let mut stack_tree = termtree:: Tree :: root ( joint) . with_glyphs ( JOINT_GLYPHS ) ;
1314
+ let mut stack_tree = termtree:: Tree :: new ( joint) . with_glyphs ( JOINT_GLYPHS ) ;
1315
1315
for child_tree in stack. into_iter ( ) {
1316
1316
stack_tree. push ( child_tree. into_display (
1317
1317
repo,
@@ -1325,7 +1325,7 @@ impl<'r> Tree<'r> {
1325
1325
let stack_len = stack. len ( ) ;
1326
1326
for ( j, child_tree) in stack. into_iter ( ) . enumerate ( ) {
1327
1327
if i != 0 && j == 0 {
1328
- tree. push ( termtree:: Tree :: root ( joint) . with_glyphs ( SPACE_GLYPHS ) ) ;
1328
+ tree. push ( termtree:: Tree :: new ( joint) . with_glyphs ( SPACE_GLYPHS ) ) ;
1329
1329
}
1330
1330
let child = RenderNode {
1331
1331
repo,
@@ -1334,11 +1334,11 @@ impl<'r> Tree<'r> {
1334
1334
node : Some ( child_tree. root ) ,
1335
1335
palette,
1336
1336
} ;
1337
- tree. push ( termtree:: Tree :: root ( child) . with_glyphs ( GLYPHS ) ) ;
1337
+ tree. push ( termtree:: Tree :: new ( child) . with_glyphs ( GLYPHS ) ) ;
1338
1338
if !child_tree. stacks . is_empty ( ) {
1339
1339
for child_stack in child_tree. stacks . into_iter ( ) {
1340
1340
let mut stack_tree =
1341
- termtree:: Tree :: root ( joint) . with_glyphs ( JOINT_GLYPHS ) ;
1341
+ termtree:: Tree :: new ( joint) . with_glyphs ( JOINT_GLYPHS ) ;
1342
1342
for child_tree in child_stack. into_iter ( ) {
1343
1343
stack_tree. push ( child_tree. into_display (
1344
1344
repo,
@@ -1350,7 +1350,7 @@ impl<'r> Tree<'r> {
1350
1350
tree. push ( stack_tree) ;
1351
1351
}
1352
1352
if j < stack_len {
1353
- tree. push ( termtree:: Tree :: root ( joint) . with_glyphs ( SPACE_GLYPHS ) ) ;
1353
+ tree. push ( termtree:: Tree :: new ( joint) . with_glyphs ( SPACE_GLYPHS ) ) ;
1354
1354
}
1355
1355
}
1356
1356
}
0 commit comments