Use &Path over &PathBuf

This commit is contained in:
Richard Feldman 2021-03-26 08:26:45 -04:00
parent a66c60cf4d
commit 7d004c48b1

View file

@ -4114,7 +4114,7 @@ where
Ok(()) Ok(())
} }
fn to_file_problem_report(filename: &PathBuf, error: io::ErrorKind) -> String { fn to_file_problem_report(filename: &Path, error: io::ErrorKind) -> String {
use roc_reporting::report::{Report, RocDocAllocator, DEFAULT_PALETTE}; use roc_reporting::report::{Report, RocDocAllocator, DEFAULT_PALETTE};
use ven_pretty::DocAllocator; use ven_pretty::DocAllocator;