diff --git a/tests/cli.rs b/tests/cli.rs index f6ae4bf..629ccd8 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -112,7 +112,7 @@ fn mangen() { .assert() .success(); let manpath = outdir.join("demo.1"); - let script = std::fs::read_to_string(&manpath).unwrap(); + let script = std::fs::read_to_string(manpath).unwrap(); assert!(script.contains(".TH DEMO 1")); } diff --git a/tests/snapshots/integration__compgen__filedir__cd_win.snap b/tests/snapshots/integration__compgen__filedir__cd_win.snap index 5d01e4c..f74bcf6 100644 --- a/tests/snapshots/integration__compgen__filedir__cd_win.snap +++ b/tests/snapshots/integration__compgen__filedir__cd_win.snap @@ -9,6 +9,7 @@ expression: data .\command\ 0 .\command\ 1;34 .\compgen.rs 1 .\compgen.rs 39 .\lib.rs 1 .\lib.rs 39 +.\manpage.rs 1 .\manpage.rs 39 .\matcher.rs 1 .\matcher.rs 39 .\param.rs 1 .\param.rs 39 .\parser.rs 1 .\parser.rs 39 @@ -21,6 +22,7 @@ expression: data .\command\ 0 .\command\ 1;34 .\compgen.rs: 0 .\compgen.rs: 39 .\lib.rs: 0 .\lib.rs: 39 +.\manpage.rs: 0 .\manpage.rs: 39 .\matcher.rs: 0 .\matcher.rs: 39 .\param.rs: 0 .\param.rs: 39 .\parser.rs: 0 .\parser.rs: 39 @@ -33,6 +35,7 @@ expression: data --oa=.\command\ 0 .\command\ 1;34 --oa=.\compgen.rs 1 .\compgen.rs 39 --oa=.\lib.rs 1 .\lib.rs 39 +--oa=.\manpage.rs 1 .\manpage.rs 39 --oa=.\matcher.rs 1 .\matcher.rs 39 --oa=.\param.rs 1 .\param.rs 39 --oa=.\parser.rs 1 .\parser.rs 39 @@ -45,6 +48,7 @@ foo=.\build.rs 1 .\build.rs 39 foo=.\command\ 0 .\command\ 1;34 foo=.\compgen.rs 1 .\compgen.rs 39 foo=.\lib.rs 1 .\lib.rs 39 +foo=.\manpage.rs 1 .\manpage.rs 39 foo=.\matcher.rs 1 .\matcher.rs 39 foo=.\param.rs 1 .\param.rs 39 foo=.\parser.rs 1 .\parser.rs 39 diff --git a/tests/snapshots/integration__compgen__filedir__value_name_win.snap b/tests/snapshots/integration__compgen__filedir__value_name_win.snap index e0c36b0..b61ddbc 100644 --- a/tests/snapshots/integration__compgen__filedir__value_name_win.snap +++ b/tests/snapshots/integration__compgen__filedir__value_name_win.snap @@ -9,6 +9,7 @@ src\build.rs 1 build.rs 39 src\command\ 0 command\ 1;34 src\compgen.rs 1 compgen.rs 39 src\lib.rs 1 lib.rs 39 +src\manpage.rs 1 manpage.rs 39 src\matcher.rs 1 matcher.rs 39 src\param.rs 1 param.rs 39 src\parser.rs 1 parser.rs 39 @@ -25,6 +26,7 @@ src\parser.rs 1 parser.rs 39 .\src\command\ 0 command\ 1;34 .\src\compgen.rs 1 compgen.rs 39 .\src\lib.rs 1 lib.rs 39 +.\src\manpage.rs 1 manpage.rs 39 .\src\matcher.rs 1 matcher.rs 39 .\src\param.rs 1 param.rs 39 .\src\parser.rs 1 parser.rs 39