We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30c4e6a commit cb7738eCopy full SHA for cb7738e
src/main.rs
@@ -1,6 +1,6 @@
1
use std::fs;
2
use std::io::{self, Read};
3
-use std::path::{Path, PathBuf};
+use std::path::PathBuf;
4
5
use anyhow::{Context, Result};
6
use clap::Parser;
@@ -67,7 +67,7 @@ fn format_stdin(config: &FormatConfig) -> Result<()> {
67
}
68
69
fn format_file(
70
- path: &Path,
+ path: &PathBuf,
71
config: &FormatConfig,
72
write: bool,
73
check: bool,
@@ -96,7 +96,7 @@ fn format_file(
96
Ok(())
97
98
99
-fn print_diff(original: &str, formatted: &str, path: &Path) {
+fn print_diff(original: &str, formatted: &str, path: &PathBuf) {
100
if original == formatted {
101
return;
102
0 commit comments