Use Path instead of PathBuf
This commit is contained in:
parent
fc00d0d38c
commit
a12e5ed396
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user