@@ -41,7 +41,7 @@ fn from_empty_cursor() -> crate::Result {
41
41
cursor. get( Some ( "empty-dir-via-cursor" ) ) ,
42
42
Some ( & Entry {
43
43
mode: EntryKind :: Tree . into( ) ,
44
- filename: "empty-dir-via-cursor" . into ( ) ,
44
+ filename: "empty-dir-via-cursor" . try_into ( ) . expect ( "TODO" ) ,
45
45
oid: gix_hash:: ObjectId :: empty_tree( gix_hash:: Kind :: Sha1 ) ,
46
46
} ) ,
47
47
) ;
@@ -69,7 +69,7 @@ fn from_empty_cursor() -> crate::Result {
69
69
edit. get( [ "some" , "deeply" , "nested" , "path" ] ) ,
70
70
Some ( & Entry {
71
71
mode: EntryKind :: Tree . into( ) ,
72
- filename: "path" . into ( ) ,
72
+ filename: "path" . try_into ( ) . expect ( "TODO" ) ,
73
73
oid: gix_hash:: Kind :: Sha1 . null( ) ,
74
74
} ) ,
75
75
"the directory leading to the removed one is still present"
@@ -470,7 +470,7 @@ fn from_empty_add() -> crate::Result {
470
470
edit. get( [ "a" , "b" ] ) ,
471
471
Some ( & Entry {
472
472
mode: EntryKind :: Tree . into( ) ,
473
- filename: "b" . into ( ) ,
473
+ filename: "b" . try_into ( ) . expect ( "TODO" ) ,
474
474
oid: hex_to_id( "4b825dc642cb6eb9a060e54bf8d69288fbee4904" ) ,
475
475
} ) ,
476
476
"before writing, entries are still present, just like they were written"
@@ -479,7 +479,7 @@ fn from_empty_add() -> crate::Result {
479
479
edit. get( [ "a" , "b" , "c" ] ) ,
480
480
Some ( & Entry {
481
481
mode: EntryKind :: Tree . into( ) ,
482
- filename: "c" . into ( ) ,
482
+ filename: "c" . try_into ( ) . expect ( "TODO" ) ,
483
483
oid: gix_hash:: ObjectId :: empty_tree( gix_hash:: Kind :: Sha1 ) ,
484
484
} ) ,
485
485
) ;
@@ -503,7 +503,7 @@ fn from_empty_add() -> crate::Result {
503
503
edit. get( Some ( "a" ) ) ,
504
504
Some ( & Entry {
505
505
mode: EntryKind :: Tree . into( ) ,
506
- filename: "a" . into ( ) ,
506
+ filename: "a" . try_into ( ) . expect ( "TODO" ) ,
507
507
oid: hex_to_id( "850bf83c26003cb0541318718bc9217c4a5bde6d" ) ,
508
508
} ) ,
509
509
"but the top-level tree is still available and can yield its entries, as written with proper ids"
0 commit comments