Skip to content

Commit 31e8237

Browse files
move imports up
1 parent 1ce2b17 commit 31e8237

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/gitignore_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use predicates::prelude::*;
44
use serial_test::serial;
55
use std::path::PathBuf;
66
use std::{error::Error, process::Command};
7+
use tempfile::TempDir;
78

89
mod common;
910

@@ -49,7 +50,8 @@ fn test_check_ignores_violations_in_gitignored_files(
4950

5051
/// Test that list-included-files respects gitignore patterns.
5152
#[test]
52-
fn test_list_included_files_excludes_gitignored() -> Result<(), Box<dyn Error>> {
53+
fn test_list_included_files_excludes_gitignored() -> Result<(), Box<dyn Error>>
54+
{
5355
let output = Command::cargo_bin("pks")?
5456
.arg("--project-root")
5557
.arg("tests/fixtures/app_with_gitignore")
@@ -377,8 +379,6 @@ fn test_respects_global_gitignore() -> Result<(), Box<dyn Error>> {
377379
/// Gitignored files should not cause package_todo.yml updates.
378380
#[test]
379381
fn test_update_respects_gitignore() -> Result<(), Box<dyn Error>> {
380-
use tempfile::TempDir;
381-
382382
// Create a temporary copy of the fixture
383383
let temp_dir = TempDir::new()?;
384384
let temp_fixture = temp_dir.path().join("app");

0 commit comments

Comments
 (0)