refactor: replace &PathBuf with &Path to enhance generality
This commit is contained in:
parent
978c659b72
commit
7eb0d84424
8 changed files with 15 additions and 18 deletions
|
@ -1076,7 +1076,7 @@ impl OutputFilenames {
|
|||
self.with_directory_and_extension(&self.out_directory, extension)
|
||||
}
|
||||
|
||||
pub fn with_directory_and_extension(&self, directory: &PathBuf, extension: &str) -> PathBuf {
|
||||
pub fn with_directory_and_extension(&self, directory: &Path, extension: &str) -> PathBuf {
|
||||
let mut path = directory.join(&self.filestem);
|
||||
path.set_extension(extension);
|
||||
path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue