Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 committed Sep 29, 2024
1 parent 57a9342 commit 20e8858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rstest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ pub use rstest_macros::fixture;
/// that tell to the compiler what to look in order to recompile the tests. For instance
/// follow a simple example:
///
/// ```
/// ```ignore
/// pub fn main() {
/// println!("cargo::rerun-if-changed=tests/resources");
/// println!("cargo::rerun-if-env-changed=BASE_TEST_DIR");
Expand Down
2 changes: 1 addition & 1 deletion rstest_macros/src/parse/rstest/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl FilesGlobReferences {
};

let v = env.get(var_name);
let replacement = match (v.as_ref().map(String::as_str), default) {
let replacement = match (v.as_deref(), default) {
(Some(""), Some(default)) => default.to_string(),
(Some(val), _) => val.to_string(),
(None, Some(default)) => default.to_string(),
Expand Down

0 comments on commit 20e8858

Please sign in to comment.