Skip to content

Commit 8a3c287

Browse files
authored
fix: adjust path type in print_diff function for consistency (#8)
1 parent 3016675 commit 8a3c287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fs;
22
use std::io::{self, Read};
3-
use std::path::PathBuf;
3+
use std::path::{Path, PathBuf};
44

55
use anyhow::{Context, Result};
66
use clap::Parser;
@@ -96,7 +96,7 @@ fn format_file(
9696
Ok(())
9797
}
9898

99-
fn print_diff(original: &str, formatted: &str, path: &PathBuf) {
99+
fn print_diff(original: &str, formatted: &str, path: &Path) {
100100
if original == formatted {
101101
return;
102102
}

0 commit comments

Comments
 (0)