File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
rstest_macros/src/parse/rstest Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -997,7 +997,7 @@ pub use rstest_macros::fixture;
997997/// that tell to the compiler what to look in order to recompile the tests. For instance
998998/// follow a simple example:
999999///
1000- /// ```
1000+ /// ```ignore
10011001/// pub fn main() {
10021002/// println!("cargo::rerun-if-changed=tests/resources");
10031003/// println!("cargo::rerun-if-env-changed=BASE_TEST_DIR");
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl FilesGlobReferences {
7373 } ;
7474
7575 let v = env. get ( var_name) ;
76- let replacement = match ( v. as_ref ( ) . map ( String :: as_str ) , default) {
76+ let replacement = match ( v. as_deref ( ) , default) {
7777 ( Some ( "" ) , Some ( default) ) => default. to_string ( ) ,
7878 ( Some ( val) , _) => val. to_string ( ) ,
7979 ( None , Some ( default) ) => default. to_string ( ) ,
You can’t perform that action at this time.
0 commit comments