@@ -41,7 +41,7 @@ fn from_empty_cursor() -> crate::Result {
4141 cursor. get( Some ( "empty-dir-via-cursor" ) ) ,
4242 Some ( & Entry {
4343 mode: EntryKind :: Tree . into( ) ,
44- filename: "empty-dir-via-cursor" . into ( ) ,
44+ filename: "empty-dir-via-cursor" . try_into ( ) . expect ( "TODO" ) ,
4545 oid: gix_hash:: ObjectId :: empty_tree( gix_hash:: Kind :: Sha1 ) ,
4646 } ) ,
4747 ) ;
@@ -69,7 +69,7 @@ fn from_empty_cursor() -> crate::Result {
6969 edit. get( [ "some" , "deeply" , "nested" , "path" ] ) ,
7070 Some ( & Entry {
7171 mode: EntryKind :: Tree . into( ) ,
72- filename: "path" . into ( ) ,
72+ filename: "path" . try_into ( ) . expect ( "TODO" ) ,
7373 oid: gix_hash:: Kind :: Sha1 . null( ) ,
7474 } ) ,
7575 "the directory leading to the removed one is still present"
@@ -470,7 +470,7 @@ fn from_empty_add() -> crate::Result {
470470 edit. get( [ "a" , "b" ] ) ,
471471 Some ( & Entry {
472472 mode: EntryKind :: Tree . into( ) ,
473- filename: "b" . into ( ) ,
473+ filename: "b" . try_into ( ) . expect ( "TODO" ) ,
474474 oid: hex_to_id( "4b825dc642cb6eb9a060e54bf8d69288fbee4904" ) ,
475475 } ) ,
476476 "before writing, entries are still present, just like they were written"
@@ -479,7 +479,7 @@ fn from_empty_add() -> crate::Result {
479479 edit. get( [ "a" , "b" , "c" ] ) ,
480480 Some ( & Entry {
481481 mode: EntryKind :: Tree . into( ) ,
482- filename: "c" . into ( ) ,
482+ filename: "c" . try_into ( ) . expect ( "TODO" ) ,
483483 oid: gix_hash:: ObjectId :: empty_tree( gix_hash:: Kind :: Sha1 ) ,
484484 } ) ,
485485 ) ;
@@ -503,7 +503,7 @@ fn from_empty_add() -> crate::Result {
503503 edit. get( Some ( "a" ) ) ,
504504 Some ( & Entry {
505505 mode: EntryKind :: Tree . into( ) ,
506- filename: "a" . into ( ) ,
506+ filename: "a" . try_into ( ) . expect ( "TODO" ) ,
507507 oid: hex_to_id( "850bf83c26003cb0541318718bc9217c4a5bde6d" ) ,
508508 } ) ,
509509 "but the top-level tree is still available and can yield its entries, as written with proper ids"
0 commit comments