Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi <iskyzh@gmail.com>
  • Loading branch information
skyzh committed Feb 24, 2024
1 parent f510605 commit c486a8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ where
R: PlannerTestRunner + 'static,
{
let tests = discover_tests(path)?
.into_iter()
.map(|path| {
let path = path?;
let filename = path
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const RESULT_SUFFIX: &str = "planner.sql";

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

0 comments on commit c486a8f

Please sign in to comment.