@@ -369,12 +369,8 @@ mod tests {
369369 let ( remote_dir, _remote) = repo_init ( ) . unwrap ( ) ;
370370 let remote_path = remote_dir. path ( ) . to_str ( ) . unwrap ( ) ;
371371 let ( repo_dir, _repo) = repo_clone ( remote_path) . unwrap ( ) ;
372- let repo_path: & RepoPath = & repo_dir
373- . into_path ( )
374- . as_os_str ( )
375- . to_str ( )
376- . unwrap ( )
377- . into ( ) ;
372+ let repo_path: & RepoPath =
373+ & repo_dir. keep ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
378374
379375 let remotes = get_remotes ( repo_path) . unwrap ( ) ;
380376
@@ -388,12 +384,8 @@ mod tests {
388384 let ( remote_dir, _remote) = repo_init ( ) . unwrap ( ) ;
389385 let remote_path = remote_dir. path ( ) . to_str ( ) . unwrap ( ) ;
390386 let ( repo_dir, _repo) = repo_clone ( remote_path) . unwrap ( ) ;
391- let repo_path: & RepoPath = & repo_dir
392- . into_path ( )
393- . as_os_str ( )
394- . to_str ( )
395- . unwrap ( )
396- . into ( ) ;
387+ let repo_path: & RepoPath =
388+ & repo_dir. keep ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
397389
398390 debug_cmd_print (
399391 repo_path,
@@ -418,12 +410,8 @@ mod tests {
418410 let ( remote_dir, _remote) = repo_init ( ) . unwrap ( ) ;
419411 let remote_path = remote_dir. path ( ) . to_str ( ) . unwrap ( ) ;
420412 let ( repo_dir, _repo) = repo_clone ( remote_path) . unwrap ( ) ;
421- let repo_path: & RepoPath = & repo_dir
422- . into_path ( )
423- . as_os_str ( )
424- . to_str ( )
425- . unwrap ( )
426- . into ( ) ;
413+ let repo_path: & RepoPath =
414+ & repo_dir. keep ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
427415
428416 debug_cmd_print (
429417 repo_path,
@@ -454,12 +442,8 @@ mod tests {
454442 let ( remote_dir, _remote) = repo_init ( ) . unwrap ( ) ;
455443 let remote_path = remote_dir. path ( ) . to_str ( ) . unwrap ( ) ;
456444 let ( repo_dir, _repo) = repo_clone ( remote_path) . unwrap ( ) ;
457- let repo_path: & RepoPath = & repo_dir
458- . into_path ( )
459- . as_os_str ( )
460- . to_str ( )
461- . unwrap ( )
462- . into ( ) ;
445+ let repo_path: & RepoPath =
446+ & repo_dir. keep ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
463447
464448 debug_cmd_print (
465449 repo_path,
@@ -494,12 +478,8 @@ mod tests {
494478 let ( remote_dir, _remote) = repo_init ( ) . unwrap ( ) ;
495479 let remote_path = remote_dir. path ( ) . to_str ( ) . unwrap ( ) ;
496480 let ( repo_dir, repo) = repo_clone ( remote_path) . unwrap ( ) ;
497- let repo_path: & RepoPath = & repo_dir
498- . into_path ( )
499- . as_os_str ( )
500- . to_str ( )
501- . unwrap ( )
502- . into ( ) ;
481+ let repo_path: & RepoPath =
482+ & repo_dir. keep ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
503483
504484 debug_cmd_print (
505485 repo_path,
@@ -530,12 +510,8 @@ mod tests {
530510 let ( remote_dir, _remote) = repo_init ( ) . unwrap ( ) ;
531511 let remote_path = remote_dir. path ( ) . to_str ( ) . unwrap ( ) ;
532512 let ( repo_dir, repo) = repo_clone ( remote_path) . unwrap ( ) ;
533- let repo_path: & RepoPath = & repo_dir
534- . into_path ( )
535- . as_os_str ( )
536- . to_str ( )
537- . unwrap ( )
538- . into ( ) ;
513+ let repo_path: & RepoPath =
514+ & repo_dir. keep ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) . into ( ) ;
539515
540516 debug_cmd_print (
541517 repo_path,
0 commit comments