Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 2, 2024
1 parent 6c4d33a commit bed214c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration_snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,14 @@ fn recurse_list_files(path: impl AsRef<Path>) -> Vec<std::fs::DirEntry> {
#[test]
fn no_new_snapshots() {
let files = recurse_list_files("test_outputs/");
let new_snaps=files.into_iter()
let new_snaps = files
.into_iter()
.map(|f| f.path())
.filter(|f| {
if f.as_path().to_str().unwrap().contains("snap.new") {
println!("{:?}",f.display());
println!("{:?}", f.display());
}
if let Some(name)=f.file_name().unwrap().to_str() {
if let Some(name) = f.file_name().unwrap().to_str() {
return name.ends_with("snap.new");
}
return false;
Expand Down

0 comments on commit bed214c

Please sign in to comment.