Skip to content

Commit b49c645

Browse files
wangrunji0408skyzh
andauthored
chore: bump libtest-mimic (#4)
* bump libtest-mimic Signed-off-by: Runji Wang <[email protected]> * fix clippy warnings Signed-off-by: Alex Chi <[email protected]> --------- Signed-off-by: Runji Wang <[email protected]> Signed-off-by: Alex Chi <[email protected]> Co-authored-by: Alex Chi <[email protected]>
1 parent 3f92e1d commit b49c645

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async-trait = "0.1"
1616
console = "0.15"
1717
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
1818
glob = "0.3"
19-
libtest-mimic = "0.5"
19+
libtest-mimic = "0.7"
2020
serde = { version = "1.0", features = ["derive"] }
2121
serde_yaml = "0.9"
2222
similar = "2"

src/apply.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ where
1616
R: PlannerTestRunner + 'static,
1717
{
1818
let tests = discover_tests(path)?
19-
.into_iter()
2019
.map(|path| {
2120
let path = path?;
2221
let filename = path

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const RESULT_SUFFIX: &str = "planner.sql";
4848

4949
pub fn discover_tests(path: impl AsRef<Path>) -> Result<Paths> {
5050
let pattern = format!("**/[!_]*{}", TEST_SUFFIX);
51-
let path = path.as_ref().join(&pattern);
51+
let path = path.as_ref().join(pattern);
5252
let path = path.to_str().context("non utf-8 path")?;
5353
let paths = glob::glob(path).context("failed to discover test")?;
5454
Ok(paths)

0 commit comments

Comments
 (0)