Use Path instead of PathBuf

This commit is contained in:
Sudarsan Balaji 2022-04-04 11:07:51 +01:00
parent fc00d0d38c
commit a12e5ed396
No known key found for this signature in database
GPG Key ID: 6644FFAC82AC1970

View File

@ -1,5 +1,5 @@
use std::fmt; use std::fmt;
use std::path::PathBuf; use std::path::{Path, PathBuf};
use std::str::FromStr; use std::str::FromStr;
use structopt::StructOpt; use structopt::StructOpt;
@ -56,8 +56,8 @@ fn generate_bindings(opt: &Opt) -> anyhow::Result<(), anyhow::Error> {
} }
fn fixup_python_lib_path( fn fixup_python_lib_path(
out_dir: &PathBuf, out_dir: &Path,
lib_name: &PathBuf, lib_name: &Path,
) -> Result<(), Box<dyn std::error::Error>> { ) -> Result<(), Box<dyn std::error::Error>> {
use std::fs; use std::fs;
use std::io::Write; use std::io::Write;