Skip to content

Commit 20e8858

Browse files
committed
Make clippy happy
1 parent 57a9342 commit 20e8858

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rstest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

rstest_macros/src/parse/rstest/files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)