diff --git a/skeptic/src/rt.rs b/skeptic/src/rt.rs index b3ba1bb..4c59754 100644 --- a/skeptic/src/rt.rs +++ b/skeptic/src/rt.rs @@ -266,8 +266,10 @@ impl Fingerprint { rlib.pop(); rlib.pop(); rlib.pop(); + let mut dll = rlib.clone(); rlib.push(format!("deps/lib{}-{}", libname, hash)); - rlib = guess_ext(rlib, &["rlib", "so", "dylib", "dll"])?; + dll.push(format!("deps/{}-{}", libname, hash)); + rlib = guess_ext(rlib, &["rlib", "so", "dylib"]).or_else(|_| guess_ext(dll, &["dll"]))?; Ok(Fingerprint { libname, diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 847af32..701eb74 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -16,3 +16,8 @@ path = "../skeptic" # It is not needed for normal uses of Skeptic. [dependencies.skeptic] path = "../skeptic" + +[dependencies.derive_more] +version = "0.99" +default_features = false +features = ["from"] diff --git a/testing/tests/hashtag-test.md b/testing/tests/hashtag-test.md index 9fc0c3a..11369e6 100644 --- a/testing/tests/hashtag-test.md +++ b/testing/tests/hashtag-test.md @@ -1,9 +1,10 @@ Rust code that includes a "`#`" should be tested by skeptic without error. ```rust +#[derive(derive_more::From)] struct Person<'a>(&'a str); fn main() { - let _ = Person("#bors"); + let _ = Person::from("#bors"); } ```